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.
Metadata
Release files for sunlight 1.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sunlight-1.2.9.tar.gz | 28.4 kB | Without provenance | Details |
Release files / sunlight-1.2.9.tar.gz
| Download URL | sunlight-1.2.9.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b61453a000825714ef480cd3f31490ab07df2e06465524a214a0ca5b34b3db6
|
|
BLAKE2b-256 checksum How to use checksums |
ecea130aef5575efee0ce440b3f261935721abf7a4bf0debb3fcf3ca5f9adc5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sunlight 1.2.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.