# 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
```python
import isdd
```
- First, you need to import the `isdd` package to use ISDD functionalities.
### 2. Accessing ISDD Methods
```python
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
```python
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
```python
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
```python
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
```python
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
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/IsddCompany/ISDD",
"name": "ISDD",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "ISDO, ISDD",
"author": "Jjoon0513",
"author_email": "isddcompany@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/15/4b/a6cc6c6e2eb746bd53064e3f27c3902e496109bc20dfcd024cbef16ccf05/isdd-0.0.0.1.tar.gz",
"platform": null,
"description": "# ISDD Package Usage Example\r\n\r\nThis 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.\r\n\r\n## Code Overview\r\n\r\n### 1. Importing the Module\r\n```python\r\nimport isdd\r\n```\r\n- First, you need to import the `isdd` package to use ISDD functionalities.\r\n\r\n### 2. Accessing ISDD Methods\r\n```python\r\nisdd.isddfile\r\nisdd.search\r\n```\r\n- The `isdd` module contains two key methods: `isddfile` for handling ISDD files and `search` for searching functionalities within those files.\r\n\r\n### 3. Encoding and Decoding Strings\r\n\r\n\r\n#### Encoding a String\r\n```python\r\nisf = isdd.isddfile\r\nencoded = isf.ISDD.encoding(\"Hello ISDD!\")\r\nprint(encoded) # Print the encoded result.\r\n```\r\n- This line encodes the string \"Hello ISDD!\" using the `ISDD.encoding` method, producing an encoded output, which is printed.\r\n\r\n#### Decoding the Encoded String\r\n```python\r\ndecoded = isf.ISDD.decoding(encoded)\r\nprint(decoded) # Print the decoded result.\r\n```\r\n- The previously encoded string is decoded back to its original form using the `ISDD.decoding` method, and the result is printed.\r\n\r\n### 4. Decoding an ISDO Object\r\n\r\n#### Example Encoded ISDO String\r\n```python\r\nencoded = \"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\"\r\n```\r\n- An example encoded string representing an ISDO (ISDD Object) is provided for decoding.\r\n\r\n#### Decoding the ISDO Object\r\n```python\r\nisf = isdd.isddfile\r\nisdd_object_decoded = isf.ISDO(encoded)\r\n```\r\n- The encoded ISDO string is decoded into an ISDO object using the `ISDO` method.\r\n\r\n### 5. Printing ISDO Object Attributes\r\n```python\r\nprint(isdd_object_decoded.name) \r\n# Print the name of the object.\r\nprint(isdd_object_decoded.country) \r\n# Print the country associated with the object.\r\nprint(isdd_object_decoded.gender) \r\n# Print the gender of the object.\r\nprint(isdd_object_decoded.madeat) \r\n# Print the place of manufacture.\r\nprint(isdd_object_decoded.engine) \r\n# Print engine information of the object.\r\nprint(isdd_object_decoded.dic) \r\n# Print the properties in dictionary format\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "ISDD package",
"version": "0.0.0.1",
"project_urls": {
"Homepage": "https://github.com/IsddCompany/ISDD"
},
"split_keywords": [
"isdo",
" isdd"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "abd7a82d85d595f16afc9afec98362c85342dc8d4d48d70400065fb918ef3877",
"md5": "cd3ed6d9f5162d4fae03d1ee7995e83d",
"sha256": "05c7adc6d896aada283b35059817fb2b146675c8eb3a6917adfabcde8a0ffae4"
},
"downloads": -1,
"filename": "ISDD-0.0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cd3ed6d9f5162d4fae03d1ee7995e83d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6666,
"upload_time": "2024-10-18T13:28:53",
"upload_time_iso_8601": "2024-10-18T13:28:53.068860Z",
"url": "https://files.pythonhosted.org/packages/ab/d7/a82d85d595f16afc9afec98362c85342dc8d4d48d70400065fb918ef3877/ISDD-0.0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "154ba6cc6c6e2eb746bd53064e3f27c3902e496109bc20dfcd024cbef16ccf05",
"md5": "fc1b33a64d18bfc32998c425a9a76ec0",
"sha256": "8dc82c6f5e408c4dfdfa00259508fabe8686e2ea4f693c8448988c7d0d608f15"
},
"downloads": -1,
"filename": "isdd-0.0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "fc1b33a64d18bfc32998c425a9a76ec0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6243,
"upload_time": "2024-10-18T13:28:54",
"upload_time_iso_8601": "2024-10-18T13:28:54.292382Z",
"url": "https://files.pythonhosted.org/packages/15/4b/a6cc6c6e2eb746bd53064e3f27c3902e496109bc20dfcd024cbef16ccf05/isdd-0.0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-18 13:28:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "IsddCompany",
"github_project": "ISDD",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "isdd"
}