Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a client without first creating a session #34

Closed
edgarrmondragon opened this issue Jul 7, 2020 · 0 comments · Fixed by #35
Closed

Create a client without first creating a session #34

edgarrmondragon opened this issue Jul 7, 2020 · 0 comments · Fixed by #35

Comments

@edgarrmondragon
Copy link
Owner

  • Citric version:
  • Python version:
  • Operating System:

Description

The current workflow is to create a session object an then a client object from that:

from citric import Client, Session

with Session("http://myls.example.com", "iamadmin", "secret") as session:
    client = Client(session)
    # call methods on `client` ....

But this is rather cumbersome and the Session low-level interface should not be exposed so I need to figure out a way to create a client without explicitly instantiating a session.

What I Did

NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant