Package: improved-replace
ImprovedReplacePython library to add some replace method improvements focused on common replacements to optimize code.Getting StartedThese 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.PrerequisitesMake sure you have Python and that the expected version is available from your command line. You can check this by running:python--versionYou should get some output like Python 3.6.3. If you do not have Python, please install the latest 3.x version frompython.orgAdditionally, you’ll need to make sure you have pip available. You can check this by running:pip--versionIf you installed Python from source, with an installer frompython.orgyou should already have pip. If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installingpip/setuptools/wheel with Linux Package Managers.If pip isn’t already installed, then first try to bootstrap it from the standard library:python-mensurepip--default-pipWhile 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-mpipinstall--upgradepipsetuptoolswheelInstallingTo install the latest version of ImprovedReplace:pipinstall-Uimproved-replaceAnd then you can import this library in Python:fromimproved_replaceimportto_arraystring="Hello World"string=to_array(string)print(string)# Output: ['Hello', 'World']Or you can check the project inPyPI.Running the testsTo run automated module tests you first need to install py.test:pipinstall-Upy.testThen you must to download the source code of the module in hisgithub repository, go to the tests folder with PowerShell and run pytest:pytestPytest will detect all automatic tests to run and check them.Some test examplesThese are some examples of the automated testdeftest_to_array():"""Test to_array function."""# Normal stringassertto_array("Hello World")==["Hello","World"]# Many spacesassertto_array(" H e l l o ")==["H","e","l","l","o"]# Only spacesassertto_array("           ")==[]# Any spacesassertto_array("HelloWorld!")==["HelloWorld!"]# Not a stringassertto_array(None)==NoneThis test is testing all the general cases of the functionto_arrayand since
the function is based on separating by space, the tests are based on that.Built WithPython- Programming language usedVS Code- Code editor usedContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.AuthorsLucas Mosquera-Creator and Maintainer-LuckJMGSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgmentsThis is my first package of python and my first real open source project. The idea occurred to me when I had to
replace a few commas many times with points or vice versa when i was practicing in the URI Online Judge.Thank you all for getting here, remember this is my first project and i'll learn more thank to this