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.4.tar.gz (7.8 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.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypasswork-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 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.4.tar.gz
Algorithm Hash digest
SHA256 3d56ee1fac44e1730338587f631beeedfd7683de202ad819526cea71ce93eec6
MD5 289d162be94b7313238200505d951d00
BLAKE2b-256 7e144ce75f5c5c388a94cc1c40653bd50745713dcee5d65e78318bf82df486ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypasswork-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b539fdf3714f96ea7b829b759ad004104f5041121f2414c514db85db2036636
MD5 c6bd33eaad52b5680322dce0e23070ac
BLAKE2b-256 e9a7c1a78e931996f5cc6d3ad045500ca2fd0382e703c60b7548a9dd39245dd1

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