Python bindings for Arcane
Reason this release was yanked:
This version supports the old API version. Please use a newer version which is feature correct.
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.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
axew-1.0.6-py3-none-any.whl
(4.5 kB
view hashes)