Petroleum

Fuel your vision.

From idea to executable: Pythonic clarity with compiled speed, joyful concurrency, and production-ready tooling.

def main():
    test_a = pet double_my_number(21)
    test_b = pet double_my_number(10)
    print(await test_a) # 42
    print(await test_b) # 20

def double_my_number(value):
    return value * 2

Pythonic feel

Use def, indentation, strings (single/double/triple), lists, and dictionaries. Familiar, readable, friendly.

Compiled speed

Ahead-of-time compilation for tight loops and real performance—without giving up clarity.

Joyful concurrency

Start background work with pet, talk with Leash, manage many using PetGroup. Simple and safe.

Errors that help

Implicit safety nets and the $ decorator for friendly messages—less boilerplate, more building.

Batteries-included logging

Flip a switch at the top of your file to get timestamped logs for execution, output, and errors.

Kindness & respect

Petroleum doesn’t “down” other languages. We celebrate the ecosystem and contribute a fresh approach.

Why Petroleum?