Giter Club home page Giter Club logo

python-sdk's People

Contributors

apazzolini avatar doppler-bot avatar piccirello avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

linx-security

python-sdk's Issues

Make dependencies less strict

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

List projects doesn't work

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

Can't download secrets by service token

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.