faker-biology


Namefaker-biology JSON
Version 0.6.4 PyPI version JSON
download
home_pagehttps://github.com/richarda23/faker-biology
SummaryFake data from biology
upload_time2024-02-10 21:03:29
maintainer
docs_urlNone
authorRichard Adams
requires_python>=3.8,<4.0
licenseApache 2
keywords biology faker
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```python
 from faker import Faker
 fake = Faker()
```

### Physiology: Cell types and  organs

```python
 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

```python
 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

```python
 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 

```python
 from faker_biology.taxonomy import ModelOrganism

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

 fake.organism_latin()
 # Schizosaccharomyces pombe
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/richarda23/faker-biology",
    "name": "faker-biology",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "Biology,Faker",
    "author": "Richard Adams",
    "author_email": "ra22597@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0f/4a/bc3b04424431ab5a1520706c188e34afc094744bf3100bbc8d6ab5da6e87/faker_biology-0.6.4.tar.gz",
    "platform": null,
    "description": "# faker-biology\nBiology-related fake data provider for Python Faker\n\nSome providers for biology-related concepts and resources.\n\n## Installation\n\n```\n pip install faker-biology\n```\n\n## Usage:\n\nStandard code to access Faker\n```python\n from faker import Faker\n fake = Faker()\n```\n\n### Physiology: Cell types and  organs\n\n```python\n from faker_biology.physiology import CellType, Organ, Organelle\n\n fake.add_provider(CellType)\n fake.add_provider(Organ)\n fake.add_provider(Organelle)\n \n fake.organ()\n # Sublingual glands\n\n fake.celltype()\n # Centroacinar cell\n\n fake.organelle()\n # chloroplast\n```\n\n### Biosequences\n\n```python\n from faker_biology.bioseq import Bioseq\n\n fake.add_provider(Bioseq)\n\n fake.dna(10)\n # ATCGTGTCAT\n\n fake.rna(10)\n # AUCGUGUCAU\n\n fake.protein(10)\n # MTGHILPSTW\n\n fake.protein_name()\n # HYAL4_HUMAN\n\n fake.amino_acid()\n # AminoAcid(full_name='Glycine', three_letters_name='Gly', one_letter_name='G', mass=57)\n \n fake.amino_acid_name()\n # Glycine\n\n fake.amino_acid_3_letters()\n # Cys\n\n fake.amino_acid_1_letter()\n # W\n\n fake.amino_acid_mass()\n # 103\n```\n\n### Molecular Biology\n\n```python\n from faker_biology.mol_biol import Antibody, RestrictionEnzyme, Enzyme\n\n fake.add_provider(RestrictionEnzyme)\n fake.add_provider(Antibody)\n fake.add_provider(Enzyme)\n\n fake.re()\n # EcoRI\n \n fake.blunt()\n # SmaI\n\n fake.antibody_isotype()\n # IgG\n\n fake.enzyme()\n # Ubiquitin carboxy-terminal hydrolase L1\n\n```\n### Taxonomy \n\n```python\n from faker_biology.taxonomy import ModelOrganism\n\n fake.add_provider(ModelOrganism)\n \n fake.organism()\n # Fission yeast\n\n fake.organism_latin()\n # Schizosaccharomyces pombe\n```\n",
    "bugtrack_url": null,
    "license": "Apache 2",
    "summary": "Fake data from biology",
    "version": "0.6.4",
    "project_urls": {
        "Documentation": "https://github.com/richarda23/faker-biology",
        "Homepage": "https://github.com/richarda23/faker-biology",
        "Repository": "https://github.com/richarda23/faker-biology"
    },
    "split_keywords": [
        "biology",
        "faker"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84f352eb657e6b412e76e9df7670af063b7cb840b2e17357ae648a90d8b7bb19",
                "md5": "0e2e975a6a53ab39dc464826f568adb8",
                "sha256": "d6f0589ae4187688a1b914f79603dedfb000b04ae0fc56ad97417ea171e2720f"
            },
            "downloads": -1,
            "filename": "faker_biology-0.6.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0e2e975a6a53ab39dc464826f568adb8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 110431,
            "upload_time": "2024-02-10T21:03:27",
            "upload_time_iso_8601": "2024-02-10T21:03:27.130100Z",
            "url": "https://files.pythonhosted.org/packages/84/f3/52eb657e6b412e76e9df7670af063b7cb840b2e17357ae648a90d8b7bb19/faker_biology-0.6.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f4abc3b04424431ab5a1520706c188e34afc094744bf3100bbc8d6ab5da6e87",
                "md5": "d8ebc825b112f81a98ad6cf7103b38de",
                "sha256": "057d2239de92ebf32e33ceeaa23aa6748d1353791241fa811c865f4f22112c93"
            },
            "downloads": -1,
            "filename": "faker_biology-0.6.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d8ebc825b112f81a98ad6cf7103b38de",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 96965,
            "upload_time": "2024-02-10T21:03:29",
            "upload_time_iso_8601": "2024-02-10T21:03:29.074443Z",
            "url": "https://files.pythonhosted.org/packages/0f/4a/bc3b04424431ab5a1520706c188e34afc094744bf3100bbc8d6ab5da6e87/faker_biology-0.6.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-10 21:03:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "richarda23",
    "github_project": "faker-biology",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "faker-biology"
}
        
Elapsed time: 3.56898s