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
animality-py-0.1.4.tar.gz 4.7 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

0.0.1

1 release file

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