axew-1.0.7
توضیحات
Python bindings for Arcane
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | axew-1.0.7 |
| نام | axew |
| نسخه کتابخانه | 1.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Menudocs |
| ایمیل نویسنده | contact@menudocs.org |
| آدرس صفحه اصلی | https://github.com/MenuDocs/Axew |
| آدرس اینترنتی | https://pypi.org/project/axew/ |
| مجوز | - |
## Axew
A set of python bindings for [Arcane](https://arcane.koldfusion.xyz/)
featuring sane error handling and caching to reduce requests.
```python
from axew import AxewClient, Entry
def main():
client: AxewClient = AxewClient()
entry: Entry = client.create_paste(
code="Testing",
error="My error",
name="My code",
description="It does this and that."
)
print(entry.resolve_url())
# Returns the cached entry and saves making a request
cached_entry = client.get_paste(entry.slug)
print(cached_entry)
async def async_main():
client: AxewClient = AxewClient()
entry: Entry = await client.async_create_paste(code="Async testing", error="My error")
print(entry.resolve_url())
# Returns the cached entry and saves making a request
cached_entry = await client.async_get_paste(entry.slug)
print(cached_entry)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl axew-1.0.7:
pip install axew-1.0.7.whl
نصب پکیج tar.gz axew-1.0.7:
pip install axew-1.0.7.tar.gz