Skip to main content

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 run poetry 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.ini envlist;
  • 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 run subprocess.run('tox').

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

montecarlosim-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

montecarlosim-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file montecarlosim-0.1.0.tar.gz.

File metadata

  • Download URL: montecarlosim-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.0 Darwin/21.6.0

File hashes

Hashes for montecarlosim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27b108429a097872d5594bba94f4aba561ba71294e55955c86cbadc288560484
MD5 ddf1bdb39b31054d4b32a16c95ca2a8c
BLAKE2b-256 9681e2ea404758fe507a9fdf1ee013b9a08428c2ddb42a287e93f23fd01a2461

See more details on using hashes here.

File details

Details for the file montecarlosim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: montecarlosim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.0 Darwin/21.6.0

File hashes

Hashes for montecarlosim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8d200598ccffcc56a8205f593454b2d0cb882c74cd27bdf955433b0bed0c27
MD5 1c60a923aaf312d4d4507fd1f32b38df
BLAKE2b-256 995529682cde2c7abd8a5aa0549e88ae863fef8c29fc28a869a873273f0fd38c

See more details on using hashes here.

Supported by

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