A standard mutable character array implementation for Python.
Project description
chararray
A standard mutable character array implementation for Python.
>>> from chararray import chararray
>>> chars = chararray("abc")
>>> chars
chararray('abc')
>>> chars + 'def'
chararray('abcdef')
>>> chars
chararray('abc')
>>> chars += 'def'
>>> chars
chararray('abcdef')
>>> chars[:3]
chararray('abc')
>>> chars[3:]
chararray('def')
>>> chars[3:] = 'ghi'
>>> chars
chararray('abcghi')
>>> chars[0] = 'A'
>>> chars
chararray('Abcghi')
Installing
Get it via pip:
pip install chararray
Testing
Run pytest
Type Checking
Run mypy .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chararray-1.0.1.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file chararray-1.0.1.tar.gz
.
File metadata
- Download URL: chararray-1.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7571758a877f7f91125432216ef1132a3ec348bc4459488be7900821b2ad2e99 |
|
MD5 | 06f923541e1aec5ebab0f4b5e9ba96c6 |
|
BLAKE2b-256 | f93a31c3c2ab0b237ba2309f2f3d04c8a585e5215d17439a4342884b8b9713bc |
File details
Details for the file chararray-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: chararray-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d490eb18c65510676a6c14ec59f2a2d6a11e765e12dd952410bcef94d15116 |
|
MD5 | a79b396d18b614aaea4734328cf9f18f |
|
BLAKE2b-256 | 8351e71706405ca0090b645235bd1b0eccbe1a9970a34f1edeae297cb013715d |