boids
Example python package simulating boids: https://en.wikipedia.org/wiki/Boids. This package serves as an example for researchers on how to turn their python code into a package.
Installation
The package is published to PyPI and can be installed with
pip install boids
If you want the development version you must first clone the repo to your local machine, then install the project in development mode:
git clone https://github.com/gregordecristoforo/boids.git
cd boids
python -m pip install -e .
Usage
Import and run the run_simulation() function:
import boids
boids.run_simulation()
You can overrite the default arguments as you wish (see the run_simulations() docstring for a list of all input arguments):
boids.run_simulation(num_boids=50, alignment=0.03, separation=0.03, cohesion=0.02)
Reproducibility
In order to guarantee that this project remains reproducible we include a environment.yml file specifying the exact version of all dependencies. Recreate a conda environment with these packages by:
conda env create -f environment.yml
Metadata
Release files for boids 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| boids-0.2.1.tar.gz | 1.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| boids-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / boids-0.2.1.tar.gz
| Download URL | boids-0.2.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f4b9e3f10d76170f66ecc313ca721a3ede33272a0f36c6c48ee12ca59260500
|
|
BLAKE2b-256 checksum How to use checksums |
2e9fa3f23cab8e2f8774b253d5723da7f92627d0e52cb1402ba3086202a1b7c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / boids-0.2.1-py2.py3-none-any.whl
| Download URL | boids-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
069f8011e60b25596708c76f3a012ef21b8253433ffe24a68e12269ea7c1103c
|
|
BLAKE2b-256 checksum How to use checksums |
e19b6150584bd6e1930b330b58ad05a73fdc0da2191cf48f7433cd30c9912a30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for boids 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.