AthenaCSS-0.8.0
توضیحات
CSS generator for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | AthenaCSS-0.8.0 |
| نام | AthenaCSS |
| نسخه کتابخانه | 0.8.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andreas Sas |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/DirectiveAthena/VerSC-AthenaCSS |
| آدرس اینترنتی | https://pypi.org/project/AthenaCSS/ |
| مجوز | GPLv3 |
# - AthenaCSS -
[](https://pypi.org/project/AthenaCSS/) [](https://github.com/DirectiveAthena/VerSC-AthenaColor/blob/master/LICENSE) [](https://discord.gg/6JcDbhXkCH) [](https://pepy.tech/project/athenalib)
---
## Package Details
#### Details and features
- A Python package which allows CSS to be written as a Python script
- CSS output to file, string or console from the Python script
#### Python Version
- Supported Python versions: **3.10**
- Other older versions of Python are not currently supported.
- These older versions will probably not be supported by [@AndreasSas](https://github.com/AndreasSas) himself, but if you want to contribute to the project and make this package compatible with older versions of Python, Pull requests are always welcome.
---
## Quick Examples
The following example is only a very small CSS code piece, but should bring the idea across of how it works.
```python
from AthenaCSS import *
from AthenaColor import RGB # Dependecy on own other package
with (css_generator := CSSGenerator()) as generator:
with (rule0 := CSSRule()) as (selector, declaration):
selector.add(
SelectorElement.H1(CSSClass("title")),
)
declaration.add(
Property.Color(RGB(128,64,32)),
)
generator.add_comment(
"The following sets the Header with the class of 'title' to have a specific color"
).add_rule(
rule0
)
css_generator.to_console()
```
The above code will output the following CSS to the console:
```css
/*The following sets the Header with the class of 'title' to have a specific color*/
h1.title {
color: rgb(128, 64, 32);
}
```
---
## Documentation
Full documentation can be found at:
**[directiveathena.com](https://publish.obsidian.md/directiveathena/)** (redirect to Obsidian.md publish site)
(Reminder, the documentation is still under heavy development)
---
## Install
To install the package in your Python environment
```
pip install AthenaCSS --upgrade
```
---
## Links
Project files can be found at:
- [GitHub Repo](https://github.com/DirectiveAthena/AthenaCSS)
- [Pypi link](https://pypi.org/project/AthenaCSS/)
---
## Disclaimer
With *No Dependency*, the standard library is not counted as a dependency
---
Made By Andreas Sas,` 2022`
نیازمندی
| مقدار | نام |
|---|---|
| >=6.2.0 | AthenaColor |
| >=1.4.0 | AthenaLib |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl AthenaCSS-0.8.0:
pip install AthenaCSS-0.8.0.whl
نصب پکیج tar.gz AthenaCSS-0.8.0:
pip install AthenaCSS-0.8.0.tar.gz