Add replace method improvements
Project description
ImprovedReplace
Python library to add some replace method improvements focused on common replacements to optimize code.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
Make sure you have Python and that the expected version is available from your command line. You can check this by running:
python --version
You should get some output like Python 3.6.3. If you do not have Python, please install the latest 3.x version from python.org
Additionally, you’ll need to make sure you have pip available. You can check this by running:
pip --version
If you installed Python from source, with an installer from python.org you should already have pip. If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installing pip/setuptools/wheel with Linux Package Managers.
If pip isn’t already installed, then first try to bootstrap it from the standard library:
python -m ensurepip --default-pip
While pip alone is sufficient to install from pre-built binary archives, up to date copies of the setuptools and wheel projects are useful to ensure you can also install from source archives:
python -m pip install --upgrade pip setuptools wheel
Installing
To install the latest version of ImprovedReplace:
pip install -i https://test.pypi.org/simple/ improved-replace
And then you can import this library in Python:
import ImprovedReplace
replace = ImprovedReplace()
string = "Hello World"
string = replace.to_array(string)
print(string)
# Output: ['Hello', 'World']
Built With
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Lucas Mosquera - Creator and Maintainer - LuckJMG
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- This is my first package of python
- The idea occurred to me when I had to replace a few commas many times with periods or vice versa
- Thank you all for getting here
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
Built Distribution
File details
Details for the file improved-replace-1.0.1.tar.gz
.
File metadata
- Download URL: improved-replace-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22855b542bbd29dd1660c6a27153cc0d9df151481023d0c216ed25df74bc690 |
|
MD5 | 3d6b550ccbabd46174487e8505f0cbdc |
|
BLAKE2b-256 | aa78bf8104ed8a8f1a9d723c8a16d24ee76a15f1dd8008fe76e994187b0eff8d |
File details
Details for the file improved_replace-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: improved_replace-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020e5a24fe595e6784a628f59e4305a31e52d255102747a43a9c14c4ba6130cd |
|
MD5 | 5d6651d391dae6ae42122e5b0ea1f9a5 |
|
BLAKE2b-256 | 90a7ca63d9861253b7203de455716873ec665d0cfd587911ee55ba8d22c33f6e |