Skip to main content

Simplified & efficient GISAID interactions.

Project description

gisaid-uploader

alt text alt text

Simplified & efficient GISAID interactions.

** This package is in development **

Features to be added soon:

  • STARLIMS REST API support for pipelines
  • GISAID API download functionality

  1. Register for a GISAID account

  2. Email GISAID & request a client ID

Installation:

    >>> pip install gisaid

Authenticate once:

    >>> import gisaid as gs
    >>> gs.GiSaid(authenticate=True, client_id="foo",
    >>>              username="bar", password="foobar", filename="authfile.json")
    "Authentication successful"

CSV + fasta file:

    >>> import gisaid as gs
    >>> x = gs.GiSaid("upload.csv", "fasta.fa")
    >>> x.upload()
    "93 Successful Uploads"
    "15 Failed Uploads"

Collated CSV:

    >>> import gisaid as gs
    >>> x = gs.GiSaid("collated", "upload.csv")
    >>> x.upload()
    "93 Successful Uploads"

Upload to a SQL database:

    >>> import gisaid as gs
    >>> table_name = "foobar"
    >>> method = "append"
    >>> x = gs.GiSaid("upload.csv", "fasta.fa")
    >>> x.upload_sql(table_name, method, conn)

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

gisaid-1.0.5b0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

gisaid-1.0.5b0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

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