Skip to main content

A simple generative art project.

Reason this release was yanked:

Broken type hints

Project description

Expansion

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 start

Use the command $ pip install expansion-raj-csh to install. If this fails, you might have to prefix the command with python3 -m on MacOS/Linux, or python -m on Windows. If that fails, try changing pip to pip3, or use the --user argument just before -r.

Prerequisites

This package depends on several other Python packages, these include:

  • numpy,
  • opencv-python,
  • pillow/PIL,
  • pygame

These can be installed in one command, with the requirements.txt file:

$ pip install -r requirements.txt

If this fails, you might have to prefix the command with python3 -m on MacOS/Linux, or python -m on Windows. If that fails, try changing pip to pip3, or use the --user argument just before -r.

Consult the official Python Packaging Authority (PyPA) website for a detailed guide on how to use pip.

It 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 -m venv <ENVIRONMENT_NAME> or $ python -m venv <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/activate command on Unix, or the <ENVIRONMENT_NAME>\Scripts\activate.bat command on Windows.

Consult the official Python website for a detailed guide on how to use venv.

Installing from source

  1. Ensure that you have Python 3 installed on your system.

You can test this by running $ python3 --version on the command line. If this fails, try running $ python --version and 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 the Python website, and make sure you install Python 3.

  1. Check that pip is installed.

You can test this by running $ pip --version on the command line. If this fails, you might have to prefix the command with python3 -m on MacOS/Linux, or python -m on Windows. If that fails, try changing pip to pip3.

If that fails, it most likely means that pip is not installed on your system.

To install pip, follow the guide on the Python Packaging Authority (PyPA) website.

  1. Update setuptools.

Run the command $ pip install --upgrade setuptools to update setuptools. If this fails, you might have to prefix the command with python3 -m on MacOS/Linux, or python -m on Windows. If that fails, try changing pip to pip3.

  1. (Optional)(Recommended) Create a virtual environment via venv.

Navigate to your desired directory, by running $ cd <DIRECTORY> on the command line. Then create the virtual environment with the $ python3 -m venv <ENVIRONMENT_NAME> or the $ python -m venv <ENVIRONMENT_NAME> commands. This can be activated with the $ source <ENVIRONMENT_NAME>/bin/activate command on Unix, or the <ENVIRONMENT_NAME>\Scripts\activate.bat command on Windows. It can then be deactivated via the $ deactivate command.

  1. Clone the git repository.

This can be done via the git clone https://github.com/Raj-CSH/Expansion.git command, if git is installed on your system. This can be checked via the $ git --version command.

If that fails, it most likely means git is not installed on your system.

To install git, follow the guide on the Git website.

  1. Install the dependencies via pip.

First, activate your virtual environment as shown above. Then, run the command $ cd Expansion to navigate to the repository directory. Finally, run the command $ pip install -r requirements.txt to install the dependencies.

  1. Build via setuptools.

In the same directory as setup.py, run the $ python3 setup.py sdist bdist_wheel or the $ python setup.py sdist bdist_wheel commands, depending on your OS. This will generate a 'dist' folder, containing the '.whl' file that can be installed via pip.

  1. Install the wheel.

Navigate into the dist folder via the command $ cd dist. Then run $ pip install expansion_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.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

expansion-raj-csh-1.0.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

expansion_raj_csh-1.0.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file expansion-raj-csh-1.0.1.tar.gz.

File metadata

  • Download URL: expansion-raj-csh-1.0.1.tar.gz
  • Upload date:
  • Size: 13.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for expansion-raj-csh-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e38f5c649a50bac80dacd3a7a84835cf04dd1c4612c6e9a787c730021eb8c98e
MD5 691b334cd62b7c643328ff0ba7e0fa8d
BLAKE2b-256 8163d86abc2667b982e899b7300694b086c7458d624743d7d69c4560f590c0b3

See more details on using hashes here.

File details

Details for the file expansion_raj_csh-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: expansion_raj_csh-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for expansion_raj_csh-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc07ab8ab5581d1a3a8727531ceb7109f876b0e3ed689bc39a1f5e9e2aa2cc2
MD5 c855907ce78d80dddf9abe34e4c2d078
BLAKE2b-256 a6e88cdf8c126816aa58d5bb8964be505e20802a4560365dcb3c90234aa9588e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page