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.3
    • findAllOrganisms works correctly, client side filtering no longer necessary.

  • 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.3.tar.gz (25.4 kB view details)

Uploaded Source

Built Distributions

apollo-3.0.3-py3.5.egg (162.9 kB view details)

Uploaded Source

apollo-3.0.3-py2.7.egg (156.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for apollo-3.0.3.tar.gz
Algorithm Hash digest
SHA256 df140c4cd67e3182f3e6d06e7b5872f27439160ef5effbc6b8d3526903d5fa0a
MD5 62c4b94fe8394985248e819d518ea27f
BLAKE2b-256 dccb55e2b2896939d4d21446753a4fb951a92d5fc692f7ae267fce7fa45400ef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for apollo-3.0.3-py3.5.egg
Algorithm Hash digest
SHA256 616f54670f5a608448e1bdffc8b77a2f8072f70a6924d2a59168de579beadb3a
MD5 e0fb8513b00eddc1dddca4a1fffa6efe
BLAKE2b-256 37c89ce7773694e775907b171616a33937dba85b960fca77180971a04ec97cab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for apollo-3.0.3-py2.7.egg
Algorithm Hash digest
SHA256 554647d22273209109a9a807cad741a9f6d7c62a1199bfa73909992d05206381
MD5 43fce1322e2ece645ef04e23fd47f48b
BLAKE2b-256 6e83ad208f0903ec96da41b6322350a0eca196b760e24414143103ba231c699c

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