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.54.tar.gz
(9.0 kB
view hashes)
Built Distribution
dynamofl-0.0.54-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for dynamofl-0.0.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d45e311550adc9b21d5d8c407d7d32ea2a81e947b7bc858ed6f2a6ca7a3cce |
|
MD5 | 3f0ec23c0b80b061780878c1788c5dad |
|
BLAKE2b-256 | b5a730ad85aef0e94caf6fff45029566aadf80ee4236c440a4dc8cc6a5e61c87 |