MonteCarlo simulation library
Project description
MonteCarlo simulation algorithm
Installation
pip install montecarlosim
Requirements
Python 3.10.0+ Currently working to introduce support to old version.
Getting started
- Clone the repository the way you like;
- Create a virtualenv (with pyenv and virtualenv you can run
pyenv virtualenv 3.10.0 <name_you_like>
) otherwise install poetry and runpoetry install
, it will take care of the virtualenv itself; - Now you can lunch the tests with
poetry run tests
and it will tests all environment inside tox.inienvlist
; - Create a branch, do your changes, push them and open a PR.
Repository structure
Repository configuration files are:
pyproject.toml
;tox.ini
, tests;src
, contains the actual repository code;src/montecarlo.py
, contains the Montecarlo class (where magic happens);src/functions.py
, contains example functions to be used with Montecarlo class;src/exceptions.py
, contains custom exception that are used to better handle errors;tests
, contains python tests file that is launched by tox;run_tests.py
, simple function that runsubprocess.run('tox')
.
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
montecarlosim-0.1.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for montecarlosim-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8d200598ccffcc56a8205f593454b2d0cb882c74cd27bdf955433b0bed0c27 |
|
MD5 | 1c60a923aaf312d4d4507fd1f32b38df |
|
BLAKE2b-256 | 995529682cde2c7abd8a5aa0549e88ae863fef8c29fc28a869a873273f0fd38c |