Skip to main content

byteworker

Convert byte to word and world to decimal

Version: 1.0.0

Background

We are developing an automaton system. where hardware send data through post request but send only byte without any headers and formatting. I have just build this package for working with this kind of situation easily

example input

b'\\xd2\\x04.\\x164#\\x80\\r'
or
b'\xd2\x04.\x164#\x80\r'

Output

[1234, 5678, 9012, 3456]

Available Functions

is_byte_has_double_slash() 
    1. return True or False
    
double_slash_to_sinble_slash() 
    1. Fix byte \\ issue convert it to \ 
    
get_perfect_byte() 
    1. Return perfect bye if it ha \\ change to \
    2. If it has \ just return it

byte_to_word_to_decemal_array()
	1. It receive a byte and return decimal array by word	    

Enjoy

If you like please give a star Portfolio | Send a mail

Change Log

1.0.0 (23/01/2022)

  • First Tested and Stable Release
  • Fix Wrong byte input like \ to \
  • Convert word to decimal
  • Return and arry of decimal

Metadata

Release files for byteworker 1.0.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 byteworker 1.0.2
File Size Uploaded Provenance Actions
byteworker-1.0.2.tar.gz 2.8 kB Without provenance Details for byteworker-1.0.2.tar.gz

Release files / byteworker-1.0.2.tar.gz

Download URL byteworker-1.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
82724c87a84e1f7623ef77b68607f8d7904f8b0bf31af2398404c4366052268d
BLAKE2b-256 checksum
How to use checksums
c3eb0aa86091a754b509bb34e3777629ed8e9a40fb9e21cee1c0c3fa555347cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

Security for byteworker 1.0.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

1.0.2 This release

1 release file 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