Giter Site home page Giter Site logo

Comments (4)

mfominov avatar mfominov commented on June 23, 2024 1

@OdyX @kiorky thx guys, with your library i've created look plugin for ansible)
https://gist.github.com/mfominov/cf73c2c555e1ac05ca2b9049f2c1c292

from bitwardentools.

mfominov avatar mfominov commented on June 23, 2024

By with as_list=True i have an output.
odict_values([<bitwardentools.client.Login object at 0xffffb49c7d90>])
But how to get a values inside of object?

from bitwardentools.

kaotika avatar kaotika commented on June 23, 2024

Thanks @mfominov . as_list=True helped. But I needed to mangle around with the result to get the real cipher.

cipher_list = client.get_cipher(item_or_id_or_name="elk", as_list=True)
cipher = list(cipher_list)[0]
print(cipher.id)

from bitwardentools.

mfominov avatar mfominov commented on June 23, 2024

@kaotika thx)

cipher_list = client.get_cipher(
    "elk", collection=col, orga=orga, as_list=True, sync=True
)
cipher = list(cipher_list)[0]

print(cipher.data["username"])
print(cipher.data["password"])

from bitwardentools.

Related Issues (9)

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.