Skip to main content

Working with byte made easy

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

byteworker-1.0.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file byteworker-1.0.2.tar.gz.

File metadata

  • Download URL: byteworker-1.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for byteworker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 82724c87a84e1f7623ef77b68607f8d7904f8b0bf31af2398404c4366052268d
MD5 0e12850e88d3cfcb4de32538076ec864
BLAKE2b-256 c3eb0aa86091a754b509bb34e3777629ed8e9a40fb9e21cee1c0c3fa555347cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page