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.0rc2.tar.gz (14.8 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.0rc2-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PSSimPy-0.0.0rc2.tar.gz
  • Upload date:
  • Size: 14.8 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.0rc2.tar.gz
Algorithm Hash digest
SHA256 c90ee77e0fb9cecfec5207a3acf60af19f8c62acb8bc1c5f4bbb94bfd888d800
MD5 9e5034645ebb6786b1cb82c5323e0f7d
BLAKE2b-256 f5c39e82f11ff19cc1fa7579ed0acb1f9ed1a2e902600bed38ac21d495ff999b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PSSimPy-0.0.0rc2-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.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8bbeb8a2e7783932d153339344ac9bd4edb3221003d450a1a003709b1dcd4b
MD5 93f79d1a37c15a06a2afe53434233c42
BLAKE2b-256 3cc89d59aa600fe1e6bf90cab7d62b90826b5f8382497151d0b26c461d091fdb

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