Overview
somerandomapi is an API Wrapper for some-random-api.ml
Examples
Asynchronous
from somerandomapi import Animal
import asyncio
async def main():
async with Animal.dog as resp:
print(
f"Fact: {resp.fact}",
f"Image: {resp.image}",
sep="\n"
)
asyncio.run(main())
Synchronous
from somerandomapi import Animal
with Animal.dog as resp:
print(
f"Fact: {resp.fact}",
f"Image: {resp.image}",
sep="\n"
)
Easy, isn't it?
Documentation
I am not completely happy with the docs and its still being fixed but its pretty usable, click here to check it.
Note
- Not all endpoints has been added yet. However those will be added soon. (95% Completed.)
I will not add it to Pypi until I add support for all the endpoints. Follow the steps listed below to use it.It has been added.
How to install
- Manual
- First clone the repository.
- Install the packages listed in requirements.txt
py -m pip install -r requirements.txt
- Copy the folder somerandomapi to where you want to use it.
- You may then use the wrapper by importing
somerandomapi.
- Pypi
py -m pip install somerandomapiml- That's it.
Metadata
Release files for somerandomapiml 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| somerandomapiml-1.0.2.tar.gz | 7.4 kB | Without provenance | Details for somerandomapiml-1.0.2.tar.gz |
Release files / somerandomapiml-1.0.2.tar.gz
| Download URL | somerandomapiml-1.0.2.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab0cd6ee7e85f9a7011f94b5cdbba8ab63eb0e1c3d66a6f24cb8f14d3c45f68d
|
|
BLAKE2b-256 checksum How to use checksums |
ce6573bccc878ef229fa3acadfabd4d70471cfe9ba8a1c5deb8a5c134b1500f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Security for somerandomapiml 1.0.2
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.