No project description provided
Project description
Run the samples
Try the samples to see the DynamoFL SDK in action.
Generate API key from UI
Setup the environment
Create and activate venv in the root of the repo. Use the windows equivalent commands if on Windows.
$ cd client-py
$ python -m venv venv
$ source venv/bin/active
Install the dependencies to the venv
$ pip install -r requirements.txt
Create .env
file.
$ cd client-py/samples
$ cp .env.template .env
Then set the API_HOST
and API_KEY
(generated from the UI) in .env
file.
Run basic sample
$ python sample.py
Development
Install requirements
Create and activate venv in the root of the repo. Use the windows equivalent commands if on Windows.
$ cd client-py
$ python -m venv venv
$ source venv/bin/active
Install the dependencies to the venv
$ pip install -r requirements.txt
Install pre commit hooks such as Black formatter
$ pre-commit install
Tired of copy-pasting your latest changes into site-packages
?
Follow the steps below to run the samples
against your latest code
- Open
<venv>/bin/activate
- Paste the below code snippet to the end of file and set
CLIENT_PY_DIR
CLIENT_PY_DIR=<absolute path to client-py repo>
SYSPATHS=$($VIRTUAL_ENV/bin/python -c "import sys; print(':'.join(x for x in sys.path if x))")
export PYTHONPATH=$SYSPATHS":"$CLIENT_PY_DIR
- Run
pip uninstall dynamofl
to delete thedynamofl
package fromsite-packages
To test against a published
dynamofl
SDK, runpip install dynamofl
before running the samples
Build and publish the package
NOTE: Building the package would delete the dist
directory and dynamofl.egg-info
file at the root of client-py
- Ensure the libraries listed in
client-py/requirements.txt
is installed in the venv - Activate the venv
- Run
./build.sh
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 dynamofl-0.0.58-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a537618b1bb1a68757b4f04567e9c4def93af58a2db1f6ab9c6f20f974ce3dba |
|
MD5 | 8bbf3a97d731dcac59c20f1fce7a0a90 |
|
BLAKE2b-256 | 159c1bb8b3097633efaed1399485c044ecdc378af3a31b43f61e5b95dfe0b5a3 |