Git Product home page Git Product logo

sandcage-api-python's Introduction

https://d18m5nnl28b2pp.cloudfront.net/p/a/img/header.png


https://scrutinizer-ci.com/g/sandcage/sandcage-api-python/badges/quality-score.png?b=master https://travis-ci.org/sandcage/sandcage-api-python.svg?branch=master

sandcage-api-python is a python library for interfacing with SandCage's API. The API documentation can be found at SandCage's API documentation

Table of Contents

Requirements

  • certifi
  • requests

In order to use the library you need a SandCage API Key. Once logged into SandCage, you can get your API Key from here.

Install

Using pip:

pip install sandcage

or alternatively clone and install:

git clone https://github.com/sandcage/sandcage-api-python
cd sandcage-api-python
python setup.py install

Usage

Simply:

from sandcage import SandCage

sc = SandCage('[YOUR_SANDCAGE_API_KEY]')
sc.list_files_service()

See more examples

To not include YOUR_SANDCAGE_API_KEY into your code you can for example save it as a file named SANDCAGE_API_KEY into your home directory:

cd ~
echo YOUR_SANDCAGE_API_KEY > SANDCAGE_API_KEY

and then use the following code to initialize SandCage:

import os.path
from sandcage import SandCage

api_key_dir = os.path.expanduser('~')
api_key_file = os.path.join(api_key_dir, 'SANDCAGE_API_KEY')
with open(api_key_file, 'r') as f:
    api_key = f.readline()

sc = SandCage(api_key=api_key)

Contributing

We are open to suggestions and code revisions, however there are some rules and limitations that you might want to consider first.

  • Code that you contribute will automatically be licensed under the Apache License Version 2.0.
  • Third party code will be reviewed, tested and possibly modified before being released.

These basic rules help ensure that this code remains Open Source and compatible with Apache 2.0 license. All contributions will be added to the changelog and appear in every release.

sandcage-api-python's People

Contributors

sandcage avatar ajjn avatar studioammos avatar theztefan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.