Skip to main content

animality-py

Python Wrapper for https://animality.xyz
Discord Server: https://discord.gg/ESPMP7BEeJ
Made for burber. (Hamburger#0001)

Installation

$ pip install animality-py

Simple Usage

import animality
from asyncio import get_event_loop

async def run():
    animal = await animality.get("dog")
    print(animal.name, animal.image, animal.fact)
    random = await animality.random()
    print(random.name, random.image, random.fact)

get_event_loop().run_until_complete(run())

Using a session

from animality import AnimalityClient
from asyncio import get_event_loop

async def run():
    animality = AnimalityClient()
    
    animal = await animality.get("dog")
    print(animal.name, animal.image, animal.fact)
    
    random = await animality.random()
    print(random.name, random.image, random.fact)

    await animality.close()

get_event_loop().run_until_complete(run())

Using the CLI

Get an animal.

$ animality cat

Get a random animal.

$ animality random

Get multiple animals. (up to 15)

$ animality cat dog panda bunny

Metadata

Release files for animality-py 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for animality-py 0.1.4
File Size Uploaded Provenance Actions
animality-py-0.1.4.tar.gz 4.7 kB Without provenance Details for animality-py-0.1.4.tar.gz

Release files / animality-py-0.1.4.tar.gz

Download URL animality-py-0.1.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1cedfc7c672296c06333119215593182513f0214cdb7b5278a80b0fdde87253
BLAKE2b-256 checksum
How to use checksums
19ea5f658a6b0b6ba161882d9e4f418d2263d4a8a992dbd83977e4ba5e372a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.0

Security for animality-py 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page