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
Metadata
Release files for pypasswork 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypasswork-0.0.4.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypasswork-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.7 kB
Release files / pypasswork-0.0.4.tar.gz
| Download URL | pypasswork-0.0.4.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d56ee1fac44e1730338587f631beeedfd7683de202ad819526cea71ce93eec6
|
|
BLAKE2b-256 checksum How to use checksums |
7e144ce75f5c5c388a94cc1c40653bd50745713dcee5d65e78318bf82df486ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / pypasswork-0.0.4-py3-none-any.whl
| Download URL | pypasswork-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b539fdf3714f96ea7b829b759ad004104f5041121f2414c514db85db2036636
|
|
BLAKE2b-256 checksum How to use checksums |
e9a7c1a78e931996f5cc6d3ad045500ca2fd0382e703c60b7548a9dd39245dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|