A collection of scripts to easily use the API of OCD Datalake
Project description
____ _ _ _ ____ _ _
| _ \ __ _| |_ __ _| | __ _| | _____ / ___| ___ _ __(_)_ __ | |_ ___
| | | |/ _` | __/ _` | |/ _` | |/ / _ \ \___ \ / __| '__| | '_ \| __/ __|
| |_| | (_| | || (_| | | (_| | < __/ ___) | (__| | | | |_) | |_\__ \
|____/ \__,_|\__\__,_|_|\__,_|_|\_\___| |____/ \___|_| |_| .__/ \__|___/
|_|
datalake
Datalake scripts
How to use
Installation
With Python 3.6+:
$ pip install datalake-scripts
$ pip3 install datalake-scripts
Using as a library
Using as a CLI
The cli can be used with:
$ ocd-dtl <command> <parameter>
Check ocd-dtl -h
for help, including the list of commands available.
You can also use a script directly by using the following command: <script_name> <script_options>
.
/!\ Make sure to use utf-8 without BOM when providing a file (-i option)
Environment variables
Authentication
In case you don't want to enter credential for each commands and you are on a secured terminal, set those variables:
OCD_DTL_USERNAME
email address used to login on Datalake API/GUI.OCD_DTL_PASSWORD
password used to login on Datalake API/GUI.
They are independent and one can be used without the other if you wish.
Throttling
For throttling the request, those two environment variable can be used:
OCD_DTL_QUOTA_TIME
define, in seconds, the time before resetting the requests limit, default is 1 second.OCD_DTL_REQUESTS_PER_QUOTA_TIME
define the number of request to do at maximum for the given time, default is 5 queries.
Please don't exceed the quota marked here for each endpoint
Cli parameters
Parameters common and optional for all commands:
--debug display more information for debugging purposes
-e to change the environment {preprod, prod}, default is prod
-o will set the output file as the API gives it.
-q will quiet the verbosity of the program (but still show errors / warnings)
For information about each command and more, please check the documentation directory
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
Built Distribution
Hashes for datalake-scripts-2.6.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613732841093b511a04ae3087848e247ab80c817ba6d1628896914298e87d9e3 |
|
MD5 | f899efc32e7a64e41222b2d5899cd83a |
|
BLAKE2b-256 | 5f47e49534fc9b7949ccc9be6575a20a61ad3f79e5eee353117b788f18c817ba |
Hashes for datalake_scripts-2.6.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26dffae6ea0ea68ca71d2ff63adffd798f815a7bab7e23cd8a18e4c6919d146 |
|
MD5 | 5d992407794e6b1578a625cfff8188f0 |
|
BLAKE2b-256 | 9954baf361bd19fecd5db52755f683f50151e5bc9108dabd40f2853a21f7fcca |