A Python-based software environment for developing algorithmic art projects.
Project description
CreativePython
CreativePython is a Python-based software environment for developing algorithmic art projects. It mirrors the JythonMusic API.
This package is still under development.
Quick Install
The CreativePython Install Scripts (Download) install CreativePython and all its required software, including Python3, FluidSynth, PortAudio, ffmpeg, Homebrew (on Mac), and Windows Build Kit (on Windows).
Windows
- Open
win-scripts.zip. Right-clickwindows_setup.ps1, and Run with PowerShell (it will open a PowerShell window and begin installing). - Follow any prompts and let it finish. - If you do not have Windows Build Kit installed, it will be installed as part of this process. This may take some time to complete.
macOS
- Open
mac-scripts.tgz. Control-clickmac_setup.command, and Open (it will open a Terminal window and begin installing). - Follow any prompts and let it finish. - If you do not have Command Line Tools for XCode installed, it will be installed as part of this process. This may take some time to complete.
Custom Install
1. Install Python 3 + pip
Windows
-
Open PowerShell as Administrator (search "PowerShell" in the Start menu, and select "Run as Administrator"). Copy and Paste the following commands at each step.
-
Install Chocolatey if you don't have it. (Documentation) Copy/Paste the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))When finished, exit this window and open a new PowerShell window.
-
Install Python 3.
Invoke-Expressed "choco install python -y" -
Verify that Python was installed.
py --versionYou should see something like "Python 3.12.4"
MacOS
-
Open Terminal (press Command + Space, type "Terminal", and hit Enter). Copy and Paste the following commands at each step.
-
Install Homebrew if you don't have it.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Python 3.
brew install python -
Verify your installation.
python3 --versionYou should see something like "Python 3.12.4"
2. Install System Libraries
Windows
-
Microsoft Build Tools Microsoft Build Tools contains the necessary tools to compile C++ packages that come with some Python libraries.
-
Open a new PowerShell window.
-
Download the latest Microsoft Build Tools.
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:TEMP\vs_buildtools.exe" -
Run the Installer.
Start-Process "$env:TEMP\vs_buildtools.exe" -ArgumentList "--installPath C:\Program Files\Microsoft Build Tools" --quiet --wait --norestart --nocache --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools" -Wait -
Add Build Tools to your PATH.
[Environment]::SetEnvironmentVariable("PATH", "$(Join-Path (Get-ChildItem 'C:\Program Files\Microsoft Build Tools\VC\Tools\MSVC' -Directory | Sort-Object Name -Descending | Select-Object -First 1).FullName 'bin\Hostx64\x64');$env:PATH", [EnvironmentVariableTarget]::Machine) -
Verify your Installation.
Get-Command nmake.exeYou should see a list of Applications, likely only containing 'nmake.exe'.
If you get an error, try the command in a new PowerShell window.
-
-
PortAudio: On Windows, PortAudio comes with our Python libraries below.
-
FluidSynth:
-
Open a new PowerShell window.
-
Install the latest FluidSynth.
Invoke-Expression "choco install fluidsynth -y"
-
-
ffmpeg:
-
Open a new PowerShell window.
-
Install the latest FFmpeg.
Invoke-Expression "choco install ffmpeg -y"
-
Mac
- All Libraries:
-
Open Terminal.
-
Install PortAudio, FluidSynth, and ffmpeg.
brew install portaudio fluidsynth ffmpeg
-
3. Install CreativePython
Any OS
-
Open Command Prompt/Terminal.
pip install CreativePythoncp-setup -
When prompted, download the default soundfont (It's FluidR3 GM2-2, by the way). If you choose not to download the soundfont, you will need to provide your own.
-
Verify your installation.
cp-testYou should hear a single MIDI note played at C4. If so, you're all set!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file creativepython-0.1.0.tar.gz.
File metadata
- Download URL: creativepython-0.1.0.tar.gz
- Upload date:
- Size: 121.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9582c6e2c36d440b906ebd67feedcaf49d2aaa6285a9310ccb12cbc0b10e2194
|
|
| MD5 |
b3972ce364828f1c1a13ac7c83c540c5
|
|
| BLAKE2b-256 |
c4f30274bc4a8c43112b0fca8ad396e75035c8993af37811ce6342ee55666c19
|
File details
Details for the file creativepython-0.1.0-py3-none-any.whl.
File metadata
- Download URL: creativepython-0.1.0-py3-none-any.whl
- Upload date:
- Size: 126.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfab6a0bdbc4302e17c085b7dfa7d94faa0480ce9f90257feb2278ebb711d18a
|
|
| MD5 |
e71390214e092ec1843d00f852fcd3e5
|
|
| BLAKE2b-256 |
8acdeb8ca1cca6965866ac9b94fa7e0c2a57de5e31faca46ef653ae1fc16722f
|