Skip to main content

Passwork API library

Project description

Passwork python library

Library to interract with PassworkAPI with Python.

Description

The library helps you to make requests to Passwork within your code using. In current 0.0.1 version it can just find a password by name.

Dependencies

  • Python 3.10+
  • requests 2.30.0+

Examples

from pypasswork import PassworkAPI

papi = PassworkAPI(url='https://passwork.domain.name', key='foobar')
passwords = papi.passwords.search('Some_password')
print(passwords)
[Password(name='Some_password')]
password = passwords[0]
dir(password)
['__annotations__', '__class__', '__dataclass_fields__', '__dataclass_params__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__match_args__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'access', 'access_code', 'as_dict', 'attachments', 'color', 'description', 'encrypted_password', 'id', 'is_favorite', 'login', 'name', 'password', 'path', 'tags', 'url', 'vault_id']
print(password.name)
Some_password
print(password.encrypted_password)
abcxyzfoobar=
print(password.password)
P@ssw0rd

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypasswork-0.0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypasswork-0.0.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pypasswork-0.0.3.tar.gz.

File metadata

  • Download URL: pypasswork-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pypasswork-0.0.3.tar.gz
Algorithm Hash digest
SHA256 52c97d667e0ceba7a56df00175fffde197fe629ecf67e6b8a8c5c346d1b70af2
MD5 e1a3b852374c8e2f0f1908d34246c4d3
BLAKE2b-256 d9e2028089ee5ab6ac029efc7d60f788ef369633c46c83035539a0225a50dcc2

See more details on using hashes here.

File details

Details for the file pypasswork-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pypasswork-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pypasswork-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab2af43d3132f6985c6c1401462e13d89e0c0fc3376eadece19ce7dd8a1e1275
MD5 ab837d47d2872f8cb18a2ed79171c4a2
BLAKE2b-256 a5ad46c46fc5d6d3204abca3c3f625ea17b1da0292ad256704bcc40616bc01e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page