Skip to main content

PyGalaxy

This is a simple common package.

Github: https://github.com/patrickxu1986/pygalaxy

Dependence

pip3 install -r requirements.txt

Use

  • logger
from pygalaxy import logger

logger.debug('log message') 
logger.info('log message') 
  • time
from pygalaxy import time_master

time_master.get_current_date_str()
time_master.get_current_unix_time()
  • ConsistentHash
from pygalaxy.consistent_hash import Node, ConsistentHash

node = Node(node_name='192.1.1.4')
consistent_hash = ConsistentHash()
consistent_hash.add_node(node)
n = consistent_hash.get_node('test content')
  • AES encrypt&decrypt
from pygalaxy.aes_master import AesMaster

encrypt = AesMaster.encrypt('test content', key='this is a key')
print(encrypt)
decrypt = AesMaster.decrypt(encrypt, key='this is a key')
print(decrypt)

Metadata

Release files for pygalaxy 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygalaxy 0.4.2
File Size Uploaded Provenance Actions
pygalaxy-0.4.2.tar.gz 9.3 kB Without provenance Details for pygalaxy-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygalaxy 0.4.2
File Interpreter ABI Platform Actions
pygalaxy-0.4.2-py3-none-any.whl Python 3 none any Details for pygalaxy-0.4.2-py3-none-any.whl

Total release size: 20.0 kB

Release files / pygalaxy-0.4.2.tar.gz

Download URL pygalaxy-0.4.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cf55f09547d91b7e6d89262ca16f4e50fe9c7257349ef30a60d6f03a3f79745a
BLAKE2b-256 checksum
How to use checksums
6d283bdc5fb77da94de376238a41af43174a5aa405dd1ce010547439902a3905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.13

Release files / pygalaxy-0.4.2-py3-none-any.whl

Download URL pygalaxy-0.4.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c94095c9565a6628f86ccf4d0cfe9e433fff057c7e2020926d557b7ec887c1b
BLAKE2b-256 checksum
How to use checksums
33975a9b5a29f3de2fbc8fa733202e9f437f4610ade97d94f52ef71755c656da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.13

Security for pygalaxy 0.4.2

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.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files No provenance

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