"# tf-persistent-data"
설명
- 데이터를 암호화하여 저장 / 복구
- 데이터 형태에 상관없이 저장가능하고 해당 타입으로 복구한다.
- 암호화 키를 반드시 지정하여 사용 (persist = TfPersistentData(b'p@ssw0rd'))
사용법1
from tfpersistentdata.tfpersistentdata import TfPersistentData
if __name__ == '__main__':
persist = TfPersistentData(b'p@ssw0rd')
data = {'a': 123, 'b': 'text1234'}
filename = 'data1.tpd'
persist.write(data, filename)
rdata = persist.read(filename)
print('filename:', filename, '| data:', rdata, '| type:', type(rdata))
사용법2
from tfpersistentdata.tfpersistentdata import TfPersistentData
if __name__ == '__main__':
persist = TfPersistentData(b'p@ssw0rd')
data = 3.14
filename = 'data1.tpd'
persist.write(data, filename)
rdata = persist.read(filename)
print('filename:', filename, '| data:', rdata, '| type:', type(rdata))
사용법3
from tfpersistentdata.tfpersistentdata import TfPersistentData
class A:
a = 1
b = 'text2'
if __name__ == '__main__':
persist = TfPersistentData(b'p@ssw0rd')
data = A()
filename = 'data1.tpd'
persist.write(data, filename)
rdata = persist.read(filename)
print('filename:', filename, '| data:', rdata, '| type:', type(rdata))
Metadata
Release files for tf-persistent-data 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tf_persistent_data-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for tf_persistent_data-1.0.1-py3-none-any.whl |
Release files / tf_persistent_data-1.0.1-py3-none-any.whl
| Download URL | tf_persistent_data-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f14f75c34c3b4c842860eb83990d78503b19e3becf2005dcd3b9dc59962f822
|
|
BLAKE2b-256 checksum How to use checksums |
40bc4610d71084e1a4b1dc2402aad2a9d0f278536348fb91925931b4bb13c9fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.9
|
Security for tf-persistent-data 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.