Python bindings for Arcane
Project description
Axew
A set of python bindings for Arcane featuring sane error handling and caching to reduce requests.
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
axew-1.0.7.tar.gz
(3.4 kB
view details)
Built Distribution
axew-1.0.7-py3-none-any.whl
(4.0 kB
view details)
File details
Details for the file axew-1.0.7.tar.gz
.
File metadata
- Download URL: axew-1.0.7.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d82bf5aff770316484876ecd23471a4bc3589b5f460ac29fe151f948a0d1a8 |
|
MD5 | ce92d9183708340e52e2b5716ad75bcc |
|
BLAKE2b-256 | ee19fd27226070d7d0b31ab8d685ffdd9a060247bdd7ef6489f10d62b60eb874 |
File details
Details for the file axew-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: axew-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6535d4e2725343403af68db1f407dd9feeebe189ba07a34f1d6ea7b7a0bf922 |
|
MD5 | 502c968ee1fa844153fd7c529fd10a92 |
|
BLAKE2b-256 | b0b57be75293e7e38135efd1f5b7f5ea43eb9e1811dc34348d90b1dcd4bc5a42 |