Skip to main content

Simular

pypi

A Python smart-contract API with a fast (embedded) Ethereum Virtual Machine (EVM). Simular creates a Python wrapper around production grade Rust based Ethereum APIs.

How is it different than Brownie, Ganache, Anvil?

  • It's only an EVM, no blocks or mining
  • No HTTP/JSON-RPC. You talk directly to the EVM (and it's fast)
  • Full functionality: account transfers, contract interaction, etc...

The primary motivation for this work is to be able to model smart-contract interaction in an Agent Based Modeling environment like Mesa.

Features

  • EVM: run a local version with an in-memory database, or fork db state from a remote node.
  • Snapshot: dump the current state of the EVM to json for future use in pre-populating EVM storage
  • ABI: parse compiled Solidity json files or define a specific set of functions using human-readable notation
  • Contract: high-level, user-friendy Python API

Build from source

  • You need Rust and Python, and optionally Make. We use hatch for Python project management, but it's not required
  • Create a local Python virtual environment. Within that environment install Python dependencies
  • Run make build or hatch run maturin develop
  • See simular/ for the main python api

Getting Started

See Simular Documentation for examples and API details.

Standing on the shoulders of giants...

Thanks to the following projects for making this work possible!

Metadata

Release files for simular-evm 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simular-evm 0.3.0
File Size Uploaded
simular_evm-0.3.0.tar.gz 76.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for simular-evm 0.3.0
File
simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.28+ x86-64 Details
simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.28+ ARMv7l Details
simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.28+ ARM64 Details
simular_evm-0.3.0-cp311-none-win_amd64.whl CPython 3.11 none Windows x86-64 Details
simular_evm-0.3.0-cp311-none-win32.whl CPython 3.11 none Windows x86-32 Details
simular_evm-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
simular_evm-0.3.0-cp311-cp311-manylinux_2_28_armv7l.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARMv7l Details
simular_evm-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details
simular_evm-0.3.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
simular_evm-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details
simular_evm-0.3.0-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details
simular_evm-0.3.0-cp310-none-win32.whl CPython 3.10 none Windows x86-32 Details
simular_evm-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details
simular_evm-0.3.0-cp310-cp310-manylinux_2_28_armv7l.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARMv7l Details
simular_evm-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details

Total release size: 61.6 MB

Release files / simular_evm-0.3.0.tar.gz

Download URL simular_evm-0.3.0.tar.gz
Size 76.1 kB
Tags Source
SHA-256 checksum
How to use checksums
93ec0182bb3ee1f840ffebb2b95da41e3ae2ccf79bbf9d8fc10acfb4595d03e5
BLAKE2b-256 checksum
How to use checksums
3cfc5cdaeb62e10092d8453f6b2c84bd4417c983011502465a2f50d7342ae89f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl

Download URL simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Size 5.2 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
ecb67a847008608618628f15fddea078c76490b777aa1574c5ea779e4cb55eee
BLAKE2b-256 checksum
How to use checksums
8259ca4dcb49b39a6eea418fe4ca03f5736996a71439191485447b65857af77f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl

Download URL simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl
Size 4.7 MB
Tags Linux glibc 2.28+ ARMv7l PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
b4cb15c4cd0257a6d21edc39aefde5b16d9d259ca1d060e5502f57918f912ef2
BLAKE2b-256 checksum
How to use checksums
7c1985de60ae4e5ff7c086a28d884039f727c7b9918331060d01b4bd1185a37c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl

Download URL simular_evm-0.3.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Size 5.4 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
b6d37785e44b29a939a8105d2d92bd790378a631d9933ffe48bec1e19b87877e
BLAKE2b-256 checksum
How to use checksums
5ca0e03b563840397a4fa11c9ea2b64ae707434dbaedfb6d998adce3c5e9d3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-none-win_amd64.whl

Download URL simular_evm-0.3.0-cp311-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
5f9d52d5758691c003dd6c97e0633d198dca0f23d1fcb794ee1907b87922eef3
BLAKE2b-256 checksum
How to use checksums
7755946f0ddf04411b5fcd4e576eab4b0e97cbec0d611f15fa2c233b8730fb43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-none-win32.whl

Download URL simular_evm-0.3.0-cp311-none-win32.whl
Size 2.4 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
0c0299437cad8cd58ff228cdd24472d8dbfe9f2645dffbcca4346dfb4301a28a
BLAKE2b-256 checksum
How to use checksums
60b8c3b241f29e35c0182533f2637379ff74a13b47fbc5b1a0bd6731eaea2cdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL simular_evm-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 5.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
80f4c90e836f6b822805904aa84b65be073cccf0902d9bed61eddc3107ae450d
BLAKE2b-256 checksum
How to use checksums
af9bf7c5e8a7ee46f1996e35f87c30e3bdad2c7b5abec580741c2b5087ed7a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-cp311-manylinux_2_28_armv7l.whl

Download URL simular_evm-0.3.0-cp311-cp311-manylinux_2_28_armv7l.whl
Size 4.7 MB
Tags CPython 3.11 Linux glibc 2.28+ ARMv7l
SHA-256 checksum
How to use checksums
df218fcefb8a9474166b200064b775be8029ed5ced26619ac9b491216308224e
BLAKE2b-256 checksum
How to use checksums
a83c387987f80be6b649f431a630a8afc59afdcadbe23196c9f914aeb1b83abd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL simular_evm-0.3.0-cp311-cp311-manylinux_2_28_aarch64.whl
Size 5.4 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
f904f3afeae30d1ba1934c838c6c7f401b76c8383448788758a540675a9cc4df
BLAKE2b-256 checksum
How to use checksums
3fa004cb2ab869311bafb39d6714885bbfbb8ab5696fbcab9a7e2633fc089652
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL simular_evm-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b74bba3a0428514c40d3507fb6de1a97a4b868d11064a807c19f18100b2ea116
BLAKE2b-256 checksum
How to use checksums
1e2bc48e39ca1ff12b6262bfb971f588d911356cb954b825fe2a9d8bdc63e5a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL simular_evm-0.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 2.9 MB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ab1123fb67c989ed41c4143e5e7dbadc68654fde0aeb45c4c4a5af9b258cf6c3
BLAKE2b-256 checksum
How to use checksums
47d0482459d3ab5af651c249bc9dbdfa4cee2f32f63479c486063d1049eb3bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp310-none-win_amd64.whl

Download URL simular_evm-0.3.0-cp310-none-win_amd64.whl
Size 2.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1f43f4e8a627ac21bd88eea2931ce85228a97bbf15d61b958159bd0c9cfdd5a7
BLAKE2b-256 checksum
How to use checksums
db31abc5f628e18c84b9e5e0208bc65c7dfcd0b2a5dd437d9cf852a9cb31aa25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp310-none-win32.whl

Download URL simular_evm-0.3.0-cp310-none-win32.whl
Size 2.4 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
16063df3f31660a46bda66861769dffc16198c2b1739231762884434bb9f1bda
BLAKE2b-256 checksum
How to use checksums
2dbe44c07b1fd6a7b6c9a53b4ff50353e3de9063eae85158e4e156837459d8ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL simular_evm-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 5.2 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7f52c0e4c95afc1c18a738fac091504911e1db7f2ed22a5d7fd53d8f4a8568c3
BLAKE2b-256 checksum
How to use checksums
75ed4886ee3b1f159df206520f8d49b49e7cbe86a0a96b766c57f0e0c0a60e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp310-cp310-manylinux_2_28_armv7l.whl

Download URL simular_evm-0.3.0-cp310-cp310-manylinux_2_28_armv7l.whl
Size 4.7 MB
Tags CPython 3.10 Linux glibc 2.28+ ARMv7l
SHA-256 checksum
How to use checksums
4218f2f4af8abaa01cf9130752b5120e96c6a659b31f497bd7d3967251626e8e
BLAKE2b-256 checksum
How to use checksums
facbef89ab18df22d9c249683730b4e3b38cf38c43c938c1da70977c301a9f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release files / simular_evm-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL simular_evm-0.3.0-cp310-cp310-manylinux_2_28_aarch64.whl
Size 5.4 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
0fef4626d21d6ff884461657234d1e895dc911ec58f34f05b4af45e1bc3e2d3e
BLAKE2b-256 checksum
How to use checksums
6bc94e31ccd8b771b3c0ab9fb9e0a1b0b133de705b7ca914fae9cc33b1002743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.3.0 This release

16 release files

0.2.5

15 release files

0.2.3

15 release files

0.2.1

15 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page