A provider for the python faker library to generate random animals data
Project description
faker-animals
A provider for the python faker library to generate animals data.
Description
faker-animals
offers comprehensive and accurate animals data,covering an extensive range of species. It includes info like the common name and the scientific name. This data can be useful for applications requiring realistic representations of biological diversity, educational tools, wildlife databases, or any project that needs accurate animal species data.
Installation
Install with pip:
pip install faker-animals
Add as a provider to your Faker instance:
from faker import Faker
from faker_animals import AnimalsProvider
fake.add_provider(AnimalsProvider)
If you already use faker, you probably know the conventional use is:
fake = Faker()
Usage examples
Animal
>>> fake.animal()
{
'common_name': 'Kangaroo',
'scientific_name': 'Macropodidae',
'class': 'mammals'
}
Animal Common Name
>>> fake.animal_name()
'Brown Bear'
Animal Scientific Name
>>> fake.animal_name_scientific()
'Ursus arctos'
Bird
>>> fake.bird()
{
'common_name': 'African Grey Parrot',
'scientific_name': 'Psittacus erithacus',
'class': 'birds'
}
Mammal
>>> fake.mammal()
{
'common_name': 'Alaskan Husky',
'scientific_name': 'Canis lupus',
'class': 'mammals'
}
Fish
>>> fake.fish()
{
'common_name': 'White Catfish',
'scientific_name': 'A. catus',
'class': 'fish'
}
Reptile
>>> fake.reptile()
{
'common_name': 'Black Mamba',
'scientific_name': 'D. polylepis',
'class': 'reptiles'
}
Amphibian
>>> fake.amphibian()
{
'common_name': 'Green Frog',
'scientific_name': 'Lithobates clamitans',
'class': 'amphibians'
}
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
Built Distribution
File details
Details for the file faker_animals-0.1.0.tar.gz
.
File metadata
- Download URL: faker_animals-0.1.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 046205bcd1f5a228a74fcab31dcced1114bc5f01f282eb44e47a4c390acdff13 |
|
MD5 | 12a22f16ea14a8eed5abc05d9e98a400 |
|
BLAKE2b-256 | 6aeae811947e8a9bfe4553eeea318db39890c958efd197c07516baeb4c9757c5 |
File details
Details for the file faker_animals-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: faker_animals-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14f85d9b89ddd58ab05c5f52f55851ec11727e9d924df3d1098a92dfd3455685 |
|
MD5 | cbe12e2e37795af40ca4988b63962091 |
|
BLAKE2b-256 | fa724f3b21877f58262a122f1e1a251302e0cb3561c2c8ff3e9232981603195d |