Organisms
Organisms is a simple Django app to represent organisms.
Download and Install
This package is registered as “django-organisms” in PyPI and is pip installable:
pip install django-organisms
If django is not found on your system, pip will install it too.
Quick Start
Add ‘organisms’ to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'organisms', )Run python manage.py migrate command to create organisms model.
(Optional) The following step is only needed if you have django-tastypie installed to create a REST API for your project and would like to have API endpoints for django-organisms.
Add the following to your project’s urls.py file:
# There are probably already other imports here, such as: # from django.conf.urls import url, patterns, include # If you have not already done so, import the tastypie API: from tastypie.api import Api # Import the OrganismResource: from organisms.api import OrganismResource # If you have not already done so, initialize your API and # add the OrganismResource to it v0_api = Api() v0_api.register(OrganismResource()) # In the urlpatterns, include the urls for this api: urlpatterns = patterns('', ... (r'^api/', include(v0_api.urls)) )
Usage of Management Command
This app includes a management command management/commands/organisms_create_or_update.py, which can be used to populate the organisms table in the database. It takes 3 arguments:
taxonomy_id
scientific_name
common_name
For example, to populate the Human object in the database, we would enter:
python manage.py organisms_create_or_update --taxonomy_id=9606 --scientific_name="Homo sapiens" --common_name="Human"
Metadata
Release files for django-organisms 0.6
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 |
|---|---|---|---|---|
| django-organisms-0.6.tar.gz | 5.8 kB | Without provenance | Details for django-organisms-0.6.tar.gz |
Release files / django-organisms-0.6.tar.gz
| Download URL | django-organisms-0.6.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
428c16f6a2304ac504071738ae1d2f71be5b884f9adfc9d4e1e1618d084f0116
|
|
BLAKE2b-256 checksum How to use checksums |
d10f666e55f7f11ed74752039f2cd10c942356d378fa20284184dd7514280325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.10.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15rc1
|
Security for django-organisms 0.6
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.