Skip to main content

WebApollo API library

Project description

https://travis-ci.org/galaxy-genome-annotation/python-apollo.svg?branch=master Documentation Status

Apollo is a Python library for interacting with WebApollo

Examples

from apollo import WebApolloInstance
wa = WebApolloInstance('https://fqdn/apollo', 'jane.doe@fqdn.edu', 'password')

orgs = wa.organisms.add_organism(
    "Yeast",
    "/path/to/jbrowse/data",
    genus='Saccharomyces',
    species='cerevisiae',
    public=False
)

# Give webapollo a second to process the uploaded organism.
time.sleep(1)

# Then add yourself to permission list
data = wa.users.update_organism_permissions(
    "jane.doe@fqdn.edu",
    "Yeast",
    write=True,
    export=True,
    read=True,
)

Or with the new Arrow client:

$ arrow groups create_group university
{
    "publicGroup": false,
    "class": "org.bbop.apollo.UserGroup",
    "name": "university",
    "users": null,
    "id": 558319
}
# THEN
$ arrow users get_users | \
    jq '.[] | select(.username | contains("@tamu.edu")) | .username' | \
    xargs -n1 arrow users add_to_group university
# OR
$ arrow users get_users | \
    jq '.[] | select(.username | contains("@tamu.edu")) | .username' | \
    paste -s -d',' | \
    xargs arrow group update_membership 558319 --users

History

  • 3.0.2
    • Patch a bug discovered in io.write, thanks Morgan!

  • 3.0
    • “Arrow” CLI utility

    • More pythonic API and many workarounds for Apollo bugs or oddities

    • Complete package restructure

    • Nearly all functions renamed

  • 2.0
    • Galaxy Functions

    • TTL Cache to work around Galaxy’s behaviour

    • Status and Canned* Clients from [@abretaud](https://github.com/abretaud)

  • 1.0
    • Initial release

License

Available under the MIT License

Support

This material is based upon work supported by the National Science Foundation under Grant Number (Award 1565146)

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

apollo-3.0.2.tar.gz (25.6 kB view details)

Uploaded Source

Built Distributions

apollo-3.0.2-py3.5.egg (163.4 kB view details)

Uploaded Source

apollo-3.0.2-py2.7.egg (157.1 kB view details)

Uploaded Source

File details

Details for the file apollo-3.0.2.tar.gz.

File metadata

  • Download URL: apollo-3.0.2.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apollo-3.0.2.tar.gz
Algorithm Hash digest
SHA256 8d6a2ca3779dbb5262e3f07fcbc28dac378f73740380fdf65276a7a00ffaeef1
MD5 16a0352833c5ce418cf129ff03ac6ac3
BLAKE2b-256 07d5e4428246df6033ee05d9f30fbc70fdb94ba76d2843eafccff7f65785197a

See more details on using hashes here.

File details

Details for the file apollo-3.0.2-py3.5.egg.

File metadata

  • Download URL: apollo-3.0.2-py3.5.egg
  • Upload date:
  • Size: 163.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apollo-3.0.2-py3.5.egg
Algorithm Hash digest
SHA256 9182a960adf3cbaf07988efa6e0777eeb0ce223dc74ff08c036acb8552b6bf38
MD5 7f1be8a69386dc312b5363a0c29e1d10
BLAKE2b-256 c8421f1eb6e6f367ae911028633389a3086c1162f6a8d4772e5bb6e7f9b268fc

See more details on using hashes here.

File details

Details for the file apollo-3.0.2-py2.7.egg.

File metadata

  • Download URL: apollo-3.0.2-py2.7.egg
  • Upload date:
  • Size: 157.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apollo-3.0.2-py2.7.egg
Algorithm Hash digest
SHA256 24d525a516b8faa5eae5b35a047a0c9421558e43c868e44bf24eb22fcff59050
MD5 d0815e389a56d698f48f33c48796bc76
BLAKE2b-256 5b6105a7523806153ecda07d484e681b77f01b813d0af4409e6216a9ebf97c78

See more details on using hashes here.

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