-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from DopplerHQ/v1.3.0-1712185506835
liblab SDK update v1.3.0
- Loading branch information
Showing
209 changed files
with
8,050 additions
and
4,125 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,39 @@ | ||
# doppler-sdk-example | ||
|
||
A basic example of how to use the doppler-sdk package. | ||
|
||
## Installation | ||
|
||
If `doppler-sdk` is published to pypi: | ||
|
||
```sh | ||
pip install doppler-sdk==1.2.1 | ||
pip install doppler-sdk==1.3.0 | ||
``` | ||
|
||
In the event `doppler-sdk` is not published to pypi, you can install it locally by running the following command in the example folder: | ||
|
||
```sh | ||
. ./install.sh | ||
``` | ||
|
||
This will create and start a virtual environment and install the package locally in it. | ||
|
||
To close the virtual environment run: | ||
|
||
```sh | ||
deactivate | ||
``` | ||
|
||
To re-activate the virtual environment once it is installed run: | ||
|
||
```sh | ||
source .venv/bin/activate | ||
``` | ||
|
||
## Usage | ||
|
||
To run the example, run the following command in the examples folder: | ||
|
||
```sh | ||
python sample.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
python -m venv .venv | ||
call .venv\Scripts\activate | ||
pip install build | ||
python -m build --outdir dist ..\ | ||
pip install dist\doppler_sdk-1.3.0-py3-none-any.whl --force-reinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
pip install -r requirements.txt | ||
pip install -e src\dopplersdk\ | ||
python -m unittest discover -p "test*.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.