Skip to main content

Experimental Vyper interpreter

Project description

Titanoboa

An experimental Vyper interpreter

Installation

pip install git+https://github.com/vyperlang/titanoboa

Background

Titanoboa (/tiˌtɑːnoʊˈboʊə/) is an extinct genus of very large snakes that lived in what is now La Guajira in northeastern Colombia. They could grow up to 12.8 m (42 ft), perhaps even 14.3 m (47 ft) long and reach a weight of 1,135 kg (2,500 lb). This snake lived during the Middle to Late Paleocene epoch, around 60 to 58 million years ago following the extinction of the dinosaurs. Although originally thought to be an apex predator, the discovery of skull bones revealed that it was more than likely specialized in preying on fish. The only known species is Titanoboa cerrejonensis, the largest snake ever discovered,[1] which supplanted the previous record holder, Gigantophis garstini.[2]

Usage

# simple.vy
@external
def foo() -> uint256:
    x: uint256 = 1
    return x + 7
>>> import boa

>>> simple = boa.load("simple.vy")
>>> simple.foo()
    8
>>> simple.foo()._vyper_type
    uint256

basic tests:

$ python -m tests.sim_veYFI

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

titanoboa-0.1.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

titanoboa-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file titanoboa-0.1.1.tar.gz.

File metadata

  • Download URL: titanoboa-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for titanoboa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5920f2c0cd3607ed64e25b100ca897d37c7396b7e1a96359df83907c43890e4f
MD5 10e3e26a1323474b182f9707f9193a9a
BLAKE2b-256 bb15465d3e945b73fd4f117a1f1041c0ff7eba2530d25c767e7193536919b2cc

See more details on using hashes here.

File details

Details for the file titanoboa-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: titanoboa-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for titanoboa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ebac9c62bec95a7425ef833f8c6dcc0c4c1b914b303b17fddb1ba17b4157039
MD5 c3c7d1dd0603f9f9b4f1a8109d655aa3
BLAKE2b-256 7d64bae863bf16ad3cd2d0eb22b933c08dae781e1fa7532b2a89d810a65c30e9

See more details on using hashes here.

Supported by

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