Skip to main content

Fake data from biology

Project description

faker-biology

Biology-related fake data provider for Python Faker

Some providers for biology-related concepts and resources.

Installation

 pip install faker-biology

Usage:

Standard code to access Faker

 from faker import Faker
 fake = Faker()

Physiology: Cell types and organs

 from faker_biology.physiology import CellType, Organ, Organelle

 fake.add_provider(CellType)
 fake.add_provider(Organ)
 fake.add_provider(Organelle)
 
 fake.organ()
 # Sublingual glands

 fake.celltype()
 # Centroacinar cell

 fake.organelle()
 # chloroplast

Biosequences

 from faker_biology.bioseq import Bioseq

 fake.add_provider(Bioseq)

 fake.dna(10)
 # ATCGTGTCAT

 fake.rna(10)
 # AUCGUGUCAU

 fake.protein(10)
 # MTGHILPSTW

 fake.protein_name()
 # HYAL4_HUMAN

 fake.amino_acid()
 # AminoAcid(full_name='Glycine', three_letters_name='Gly', one_letter_name='G', mass=57)
 
 fake.amino_acid_name()
 # Glycine

 fake.amino_acid_3_letters()
 # Cys

 fake.amino_acid_1_letter()
 # W

 fake.amino_acid_mass()
 # 103

Molecular Biology

 from faker_biology.mol_biol import Antibody, RestrictionEnzyme, Enzyme

 fake.add_provider(RestrictionEnzyme)
 fake.add_provider(Antibody)
 fake.add_provider(Enzyme)

 fake.re()
 # EcoRI
 
 fake.blunt()
 # SmaI

 fake.antibody_isotype()
 # IgG

 fake.enzyme()
 # Ubiquitin carboxy-terminal hydrolase L1

Taxonomy

 from faker_biology.taxonomy import ModelOrganism

 fake.add_provider(ModelOrganism)
 
 fake.organism()
 # Fission yeast

 fake.organism_latin()
 # Schizosaccharomyces pombe

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faker_biology-0.6.5.tar.gz (96.9 kB view details)

Uploaded Source

Built Distribution

faker_biology-0.6.5-py3-none-any.whl (110.4 kB view details)

Uploaded Python 3

File details

Details for the file faker_biology-0.6.5.tar.gz.

File metadata

  • Download URL: faker_biology-0.6.5.tar.gz
  • Upload date:
  • Size: 96.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/24.5.0

File hashes

Hashes for faker_biology-0.6.5.tar.gz
Algorithm Hash digest
SHA256 10f2e69613a678473f31508fc226c5fced92c3cc046a81507af7fe309b6424e7
MD5 4fd81d9cc66e9e93155aa51b5f1a2da5
BLAKE2b-256 276aabf94ef63621cf876b418cdf8979d720a10b835d3e3a03e4a2e09cf5c92a

See more details on using hashes here.

File details

Details for the file faker_biology-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: faker_biology-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 110.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.6 Darwin/24.5.0

File hashes

Hashes for faker_biology-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b183daa23ed7b57f7531b130c6fbf1db30ce19f4718eb5f9da8e87452b094c25
MD5 5b938699e337f162de0fbb643a19e070
BLAKE2b-256 9e8623bd5120bc39de229d4bae8815a8cd1db10606f31e8bd91341adad20938f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page