Package: expansion-raj-csh
What started out as a simple generative art project and experiment,
built off of numpy, has now become an API, specifically pertaining to a
point(s) reproducing in an image, with changing colors, and even
environment-sensitive reproduction, with obstacles.Quick startUse the command$ pip installexpansion-raj-cshto install. If this
fails, you might have to prefix the command withpython3-mon
MacOS/Linux, orpython-mon Windows. If that fails, try changingpiptopip3, or use the--userargument just beforeexpansion_raj_csh.DocsDocumentation can be found at theGithub Pagesfor this repository.ExamplesSee theexamplesdirectory
to see some examples, as well as an example script.PrerequisitesIt is recommended to create a virtual environment before installing, to
ensure that there are no conflicts with the system-wide python
installation, or if administrator permissions are unavailable. This can
be done with the$ python3-mvenv <ENVIRONMENT_NAME>or$ python-mvenv <ENVIRONMENT_NAME>commands, depending on the OS,
where<ENVIRONMENT_NAME>is the name of the virtual environment.
This can be activated with the$ source<ENVIRONMENT_NAME>/bin/activatecommand on Unix, or the<ENVIRONMENT_NAME>\Scripts\activate.batcommand on Windows.Installing from sourceEnsure that you have Python 3 installed on your system.You can test this by running$ python3--versionon the command
line. If this fails, try running$ python--versionand seeing if
you get a version number that begins with a 3, e.g.Python 3.8.2.If that fails, it most likely means that Python 3 is not installed on
your system.To install Python 3, go to the Downloads page of thePythonwebsite, and make sure
you install Python 3.Check that pip is installed.You can test this by running$ pip--versionon the command line. If
this fails, you might have to prefix the command withpython3-mon
MacOS/Linux, orpython-mon Windows. If that fails, try changingpiptopip3.If that fails, it most likely means that pip is not installed on your
system.To install pip, follow the guide on thePython Packaging Authority
(PyPA)website.Clone the git repository.This can be done via thegit clonehttps://github.com/Raj-CSH/Expansion.gitcommand, if git
is installed on your system. This can be checked via the$ git--versioncommand.If that fails, it most likely means git is not installed on your system.To install git, follow the guide on theGitwebsite.Install pipenv.Run the command$ pip install pipenvto install pipenv If this fails,
you might have to prefix the command withpython3-mon MacOS/Linux,
orpython-mon Windows. If that fails, try changingpiptopip3.If you’re still having problems, consult the officialPython Packaging Authority (PyPA)website.Install dependencies.Move into the directory of the cloned git repository via the$ cd Expansioncommand.
Install the dependencies via the$ pipenv installcommand. If this fails,
you might have to prefix the command withpython3-mon MacOS/Linux,
orpython-mon Windows.Activate the virtual environment.Activate the virtual environment via the$ pipenv shellcommand. If this fails,
you might have to prefix the command withpython3-mon MacOS/Linux,
orpython-mon Windows. To deactivate the virtual environment once you’re done,
run the$ exitcommand.Update setuptools.Run the command$ pip install--upgradesetuptoolsto update setuptools.Build via setuptools.In the same directory assetup.py, run the$ python3 setup.py sdist bdist_wheelor the$ python setup.py sdist bdist_wheelcommands, depending on your OS.
This will generate a ‘dist’ folder, containing the ‘.whl’ file that can
be installed via pip.Install the wheel.Navigate into the dist folder via the command$ cd dist. Then run$ pip installexpansion_raj_csh-<VERSION_NUMBER>-py3-none-any.whl,
where<VERSION_NUMBER>is the version of the expansion package. This
can be checked by looking at the version number in the filename of the
wheel.AuthorRajarshi Mandal-Raj-CSHLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsInspired by ther/generativesubreddit.