Skip to main content

Devo Software Development Kit for Python.

Project description

Build Status

Devo Python SDK

This is the SDK to access Devo directly from Python. It can be used to:

  • Send events and files to Devo.
  • Make queries.
  • Manage deferred tasks.

Requirements

The Devo SDK for Python requires Python 2.7+ or Python 3.4+

Quick Start

Installing the SDK

You can install the Devo SDK by using easy_install or pip:

#option 1
easy_install devo-sdk

#option 2
pip install devo-sdk

You can use sources files, clonning the project too:

#option 3
python setup.py install

#option 4
pip install .

#option 5 - dev option
pip install -e .

Documentation

You has specific documentation in docs folder for each part of SDK:

Contributing

See PyLibs contributing guide.
Pull and merge requests are welcome ☺

Endpoints

Sender

To send data with Devo SDK, first choose the required endpoint depending on the region your are accessing from:

  • USA: us.elb.relay.logtrust.net:443
  • EU: eu.elb.relay.logtrust.net:443

You has more info in Relays article.

API

To perform a request with API, first choose the required endpoint depending on the region your are accessing from:

You has more info in REST API article .

Credentials

To obtain the access credentials necessary to use this SDK, you must have an account in DEVO.
Check the Credentials article for more details.

Certificates

You need use a three files (Cert, key and chain) to secure send data to Devo. Administrator users can find them in AdministrationCredentials, in the X.509 tab.

API authorization

You can use a domain API key and API secret to sign the request. These are are a pair of credentials that every Devo account owns. Administrator users can find them in AdministrationCredentials, in the Access Keys tab.

Launch tests

run_tests script

You can run tests from the main folder of SDK To launch this script, you need either the environment variables loaded in the system, or the environment.env file in the root of the SDK with the correct values, since to test all the SDK functionalities it is necessary to connect to Devo for the tests of sending and extracting data. You has a example file called environment.env.example

Its normal, by the way, TCP tests fails in clients or not Devo developers systems.

~/projects/devo-python-sdk > python setup.py test 
~/projects/devo-python-sdk > python run_tests.py

You can add option "Coverage" for create HTML report about tests.

~/projects/devo-python-sdk > python run_tests.py --coverage

Run using Unittest command

You can see references in unittest documentation

For commands like:

python -m unittest discover -p "*.py" 

If you launch this command from the root directory of the SDK, you need to have the environment variables in your system for all the tests that require connection to Devo can work, not being able to use the environment.env file as in the script.

Contact Us

You can contact with us at support@devo.com.

License

MIT License

(C) 2018 Devo, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devo-sdk-1.2.0.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devo_sdk-1.2.0-py2.py3-none-any.whl (40.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file devo-sdk-1.2.0.tar.gz.

File metadata

  • Download URL: devo-sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

File hashes

Hashes for devo-sdk-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8609651aa87f5228db306d8dc1ab3188ccfe82c34c04ef75e3a28988be8fd806
MD5 919c1e8bdbd9d57c02d1b17199d429bf
BLAKE2b-256 f13a30200127c31dee9f20310ead091f56b8449f23e63217e17ac4cbcdcf85a0

See more details on using hashes here.

File details

Details for the file devo_sdk-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: devo_sdk-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

File hashes

Hashes for devo_sdk-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fb83514173e9de5628733ad66d0b26d967e5cf6fb4e3915786a4ca73f2b2bf77
MD5 4c405a4de1616610b1726406a88ef4ff
BLAKE2b-256 358e6b171976297a7f56cc82e4e091a8482e213d0bd5d40ee30ab0f7ca540140

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page