Doppler's SDK provides convenient access to the Doppler API from applications written in Python.
pip install --upgrade doppler-sdk
See sample.py for an up-to-date example.
License: MIT License
Doppler's SDK provides convenient access to the Doppler API from applications written in Python.
pip install --upgrade doppler-sdk
See sample.py for an up-to-date example.
Hi!
I found mistake or i don't understand somethings.
By default API or CLI we can download sercets with service token without usage config and project params.
Proofs
sdk doc, api reference, cli doc
But, in SDK we can't do that. If we will open services/secrest::download, we can see that config and projects are required.
And in comment below is writen, that this params not required if using a service token.
Can someone give me answer on question.
How can i get secrests without config and projects params using service token.
At the moment the dependencies for this project are set to a very specific version
dependencies = [
"requests==2.31.0",
"http-exceptions==0.2.10",
"pytest==7.1.2",
"responses==0.21.0",
]
this makes it difficult to install into an existing environment with other versions fot hose packages installed.
Please consider making those dependencies less strict
The example from the repo homepage doesn't work.
Name: doppler-sdk
Version: 1.1.1
Python 3.9
from pprint import pprint
from dopplersdk import DopplerSDK
doppler = DopplerSDK()
doppler.set_bearer_token("dp.xx.yyy")
results = doppler.projects.list()
pprint(vars(results))
It prints an empty dict {}
.
After digging into it a bit it seems like the issue is with ListResponseModel
. The api returns the correct results,
but then they get passed to ListReponseModel
that simply ignores them...
class ListResponse(BaseModel):
def __init__(self, groups: List[ListResponseGroups] = None, **kwargs):
"""
Initialize ListResponse
Parameters:
----------
groups: list of ListResponseGroups
"""
if groups is not None:
self.groups = groups
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.