Skip to main content

ISDD package

Project description

ISDD Package Usage Example

This document provides an overview of how to use encoding and decoding in the ISDD format, as well as how to decode and access ISDO file properties.

Code Overview

1. Importing the Module

import isdd
  • First, you need to import the isdd package to use ISDD functionalities.

2. Accessing ISDD Methods

isdd.isddfile
isdd.search
  • The isdd module contains two key methods: isddfile for handling ISDD files and search for searching functionalities within those files.

3. Encoding and Decoding Strings

Encoding a String

isf = isdd.isddfile
encoded = isf.ISDD.encoding("Hello ISDD!")
print(encoded)  # Print the encoded result.
  • This line encodes the string "Hello ISDD!" using the ISDD.encoding method, producing an encoded output, which is printed.

Decoding the Encoded String

decoded = isf.ISDD.decoding(encoded)
print(decoded)  # Print the decoded result.
  • The previously encoded string is decoded back to its original form using the ISDD.decoding method, and the result is printed.

4. Decoding an ISDO Object

Example Encoded ISDO String

encoded = "55 47 39 75 62 33 42 76 65 57 38 67 4D 54 6B 35 4F 43 42 54 55 31 4D 74 53 55 6B 67 52 32 56 75 5A 47 56 79 56 48 6C 77 5A 54 6F 7A 49 45 4E 76 64 57 35 30 63 6E 6B 36 4F 44 45 67 61 58 4E 6B 5A 43 35 72 63 6D 38 75 61 33 49 67 51 32 56 79 64 47 6C 6D 61 57 4E 68 64 47 6C 76 62 6B 35 31 62 57 4A 6C 63 6A 70 77 62 32 35 76 63 47 39 35 62 7A 42 6E 4D 32 4D 34 4D 57 45 78 4D 44 55 30 4D 67 3D 3D"
  • An example encoded string representing an ISDO (ISDD Object) is provided for decoding.

Decoding the ISDO Object

isf = isdd.isddfile
isdd_object_decoded = isf.ISDO(encoded)
  • The encoded ISDO string is decoded into an ISDO object using the ISDO method.

5. Printing ISDO Object Attributes

print(isdd_object_decoded.name)    
# Print the name of the object.
print(isdd_object_decoded.country) 
# Print the country associated with the object.
print(isdd_object_decoded.gender)  
# Print the gender of the object.
print(isdd_object_decoded.madeat)  
# Print the place of manufacture.
print(isdd_object_decoded.engine)  
# Print engine information of the object.
print(isdd_object_decoded.dic)     
# Print the properties in dictionary format

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

isdd-0.0.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ISDD-0.0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file isdd-0.0.0.1.tar.gz.

File metadata

  • Download URL: isdd-0.0.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for isdd-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 8dc82c6f5e408c4dfdfa00259508fabe8686e2ea4f693c8448988c7d0d608f15
MD5 fc1b33a64d18bfc32998c425a9a76ec0
BLAKE2b-256 154ba6cc6c6e2eb746bd53064e3f27c3902e496109bc20dfcd024cbef16ccf05

See more details on using hashes here.

File details

Details for the file ISDD-0.0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ISDD-0.0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for ISDD-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05c7adc6d896aada283b35059817fb2b146675c8eb3a6917adfabcde8a0ffae4
MD5 cd3ed6d9f5162d4fae03d1ee7995e83d
BLAKE2b-256 abd7a82d85d595f16afc9afec98362c85342dc8d4d48d70400065fb918ef3877

See more details on using hashes here.

Supported by

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