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 a venv and activate
cd
into theclient-py/samples
directory- Run
cp .env.template .env
to create a.env
file and set theAPI_HOST
andAPI_KEY
(generated from the UI) - Run
pip install -r requirements.txt
to install the dependencies to the venv - Run
python sample.py
Development
Install requirements
- Create a venv and activate
cd
into theclient-py
directory- Run
pip install -r requirements.txt
to install the dependencies to the venv
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
dynamofl-0.0.57.tar.gz
(10.4 kB
view hashes)
Built Distribution
dynamofl-0.0.57-py3-none-any.whl
(12.5 kB
view hashes)
Close
Hashes for dynamofl-0.0.57-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c143864a27c395c063b5ed31fa94b0f688741088dbc373b2e47bb4b17b167570 |
|
MD5 | fc665eddbd2f4806a6bc5ccd612b30d9 |
|
BLAKE2b-256 | 697d2126453f4c3fbb20aab2ee87f85897b85f391c7e964137f2edfc92ac2334 |