Skip to main content

"# 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)

Table of built distributions (wheels) for tf-persistent-data 1.0.1
File Interpreter ABI Platform
tf_persistent_data-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page