GithubHelp home page GithubHelp logo

imclab / python-sunlight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sunlightlabs/python-sunlight

0.0 2.0 0.0 284 KB

Unified Python bindings for Sunlight APIs

Home Page: http://sunlightfoundation.com/api/

License: Other

python-sunlight's Introduction

python-sunlight

This project is an attempt to unify all the Sunlight API bindings into a single project that is clear, concise, easy to read, powerful, and fun to play with.

Setup

Using this library is very easy - by default, python-sunlight will search for API keys in two places. First, ~/.sunlight.key will be read, and the contents of that file will be used as the API Key. Secondly, if an enviroment variable called SUNLIGHT_API_KEY is set, that will be used (in the case of both being read, the enviroment variable will override the file.)

To register for an API key, if you don't have one, please fill out the form here.

The easiest way to write this file out is by running a command similar to this ( on systems that support a POSIX shell):

echo "API_KEY" > ~/.sunlight.key

where API_KEY is actually the string of letters and numbers that was emailed to you. Actually putting API_KEY into this file will most likely result in an error from the server. You can confirm they key with the following command:

cat ~/.sunlight.key

This should output the string that was emailed to you.

Help me!

Basic usage and some brief examples can be found on readthedocs. If this doesn't help, feel free to email for help, ask over IRC in #sunlightlabs on irc.freenode.net, or open a issue if it's a particularly nasty bug (particularly regarding ambiguous documentation, or poorly exposed API methods).

License

All code in this project is licensed under a BSD-3 clause style license. The exact terms are in the LICENSE file, which will be distributed with any copy of the source you recieve.

Contribute

Bugfixes, documentation contributions and more extensive (yet clear) example scripts are all welcome and encouraged. Please open a pull-request against python-sunlight, or email a format-patch to the email address listed in the setup.py script.

python-sunlight's People

Contributors

dcloud avatar elimisteve avatar jamesturk avatar jcarbaugh avatar konklone avatar paultag avatar twneale avatar

Watchers

 avatar  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.