# Smart String Smart String is a Python 2.7 library to correctly parse code points (Unicode symbols with assigned numeric value) in the Unicode basic multilingual plane (BMP) or in the supplementary multilingual planes, and to form characters that consist of more than one code point.
### Using the Smart String Library The Smart String library exposes 3 main classes - CodePoint, SmartChar, and SmartStr. The CodePoint class represents a single Unicode code point, either in the BMP or in the supplementary planes. The SmartChar class represents a single graphical character. It can consist of 1 code point (letter in the English Alphabet), or 2 code points (national flag symbol). The SmartStr class represents a string containing a sequence of smart characters.
### Running the example code Go to the location of the example file in a terminal and run the example script. cd <smart-string package location>/smart_str/example python smart_str_example.py
### Running the tests To run the tests make sure that the pytest package is installed on your system. Go to the location of the tests directory in a terminal and run the tests. You can run all the tests in the tests directory, all the tests in a single module, or a single test in a module. cd <smart-string package location>/smart_str/tests pytest . - Run all the tests in the tests directory. pytest test_code_point.py - Run all the tests in a single module. pytest test_code_point.py::test_code_point_utf_8_four_bytes - Run single test in a module.
Release files for smart-string 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smart-string-0.0.10.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smart_string-0.0.10-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 26.0 kB
Release files / smart-string-0.0.10.tar.gz
| Download URL | smart-string-0.0.10.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5be1036a2568049181c53617dbccf0f7fb43c022eb403120ba653d6a2156918b
|
|
BLAKE2b-256 checksum How to use checksums |
959a68eb959bd61faa8d2c820178892324ed52d05af4609e0f2a0f435e153dc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
|
Release files / smart_string-0.0.10-py2-none-any.whl
| Download URL | smart_string-0.0.10-py2-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
055b883157a7ae61839473f18a4e98ff4708269c265af94a308db5dd7bd50c3c
|
|
BLAKE2b-256 checksum How to use checksums |
ee71f7ba9d323a403a57544b6e149ce3f35ff7db6c1ada31fbda5ee7a2952bb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
|