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 hashes)
Built Distribution
axew-1.0.7-py3-none-any.whl
(4.0 kB
view hashes)