Skip to main content

A simulator for Large Value Payment Systems

Project description

PSSimPy: A Payment and Settlement Systems Simulator Python Library

Getting Started

pip install PSSimPy

Usage

from PSSimPy.simulator import BasicSim
from PSSimPy.constraint_handler import MinBalanceConstraintHandler
from PSSimPy.queues import FIFOQueue
from PSSimPy.credit_facilities import SimplePriced
from PSSimPy.transaction_fee import FixedTransactionFee

# initialize simulator
sim = BasicSims(name='my_lvps_sim', banks=banks, accounts=accounts, transactions=transactions, num_days=1, open_time='08:00', close_time='17:00', \
txn_arrival_prob=0.5, txn_amount_range=(1, 100), constraint_handler=MinBalanceConstraintHandler(), queue=FIFOQueue(), credit_facility=SimplePriced(), \
transaction_fee_handler=FixedTransactionFee())
# execute simulation
sim.run()

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

PSSimPy-0.0.0rc0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

PSSimPy-0.0.0rc0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file PSSimPy-0.0.0rc0.tar.gz.

File metadata

  • Download URL: PSSimPy-0.0.0rc0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for PSSimPy-0.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 8d20ea30a3d9d2d9dac0d55c94e7edaa0bb969040c0686cbc31b5577cfc68728
MD5 e16293b2ba81f23754020103a8b651b3
BLAKE2b-256 61ab1ab1cc295870b16db83ac21e69b916117196f009662060007a4d63705aca

See more details on using hashes here.

File details

Details for the file PSSimPy-0.0.0rc0-py3-none-any.whl.

File metadata

  • Download URL: PSSimPy-0.0.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for PSSimPy-0.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0cf66b84b66d74fb20001c355e8d0622f93e4ec85bf80268a22e318b2d7ba3d
MD5 eec468a23a845bc13472c393ba5b81d9
BLAKE2b-256 6f44f9089cc90f6093774b1c6f052ca6a96d6d6fe41dd77f640a19f01651af71

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