Skip to main content

Obscurix

Obscurix is an esoteric programming language (Esolang) designed to have an obscure syntax that is still binary-readable.

This package provides an interpreter for .obx files.

Installation

pip install obscurix

Using the CLI

Run Obscurix files from the command line:

python -m obscurix sample.obx

With --debug flag:

python -m obscurix --debug sample.obx

Example code (sample.obx)

⥀ §sum_safe α β ※ Function definition: §sum_safe
  ⍟ ≔ 0 
  
  ↜ ?
α ≺ 0 ※ IF: Check condition α < 0
    ⇒ λ!
"Tham_số_âm" ※ TRUE: Throw an error
  ⇏ ※ ELSE: Otherwise
    ⍟ ≔ α ⊞ β ※ Calculate sum: ⍟ = α + β
  ↯ ※ End of IF block
  
  ⎋ ⍟ ※ Return the result variable ⍟
⥁ ※ End of function definition

* "Bắt_đầu_Chương_Trình" ※ Print start message

⛌ ※ TRY: Start protected block
  ⍡ ≔ 5 
  
  ⍟_res ≔ §sum_safe ⍡ 10 ※ Call function (5 + 10)
  * ⍟_res ※ Print result 15
  
  §sum_safe -1 10 ※ Call function with negative parameter -> THROW error
⎁ ε ※ CATCH: Catch error and store it in variable ε
  * "Lỗi_Bị_Bắt:" ※ Print catch message
  * ε ※ Print error message
⎎ ※ FINALLY: Block that always executes
  * "Kết_thúc_Xử_Lý_Lỗi" ※ Print finally message
⍰ ※ End of TRY block

* "Kết_thúc_Chương_Trình" ※ Print end message

Using in code (Import)

from obscurix.interpreter import ObscurixRuntime

# Source file path
FILENAME = "sample.obx"

# Initialize runtime and pass the required filename
runtime = ObscurixRuntime(FILENAME, debug=False) # Set this as True to enable debug log

# Run the execution (file content is read during initialization)
runtime.run()

# --- Expected Output (Vietnamese strings are part of the sample Obscurix code) ---
# Bắt_đầu_Chương_Trình
# 15
# Lỗi_Bị_Bắt:
# Tham_số_âm
# Kết_thúc_Xử_Lý_Lỗi
# Kết_thúc_Chương_Trình

License

MIT

Metadata

Release files for obscurix 0.1.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 obscurix 0.1.0
File Size Uploaded Provenance Actions
obscurix-0.1.0.tar.gz 10.2 kB With provenance Details for obscurix-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for obscurix 0.1.0
File Interpreter ABI Platform Actions
obscurix-0.1.0-py3-none-any.whl Python 3 none any Details for obscurix-0.1.0-py3-none-any.whl

Total release size: 20.0 kB

Release files / obscurix-0.1.0.tar.gz

Download URL obscurix-0.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ab94e5d71d119c6dcb3de4514b228620840560826d7efdfc319c204cdc761061
BLAKE2b-256 checksum
How to use checksums
8829621d173bc40975c43e768d71442e6ed812a9b45f12b133629d934efaeeed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Release files / obscurix-0.1.0-py3-none-any.whl

Download URL obscurix-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0abde3ea08961110b3ae3095f016c03f81ecb1b9c0da741eeaa0a4b5b36d2c83
BLAKE2b-256 checksum
How to use checksums
bb8c97384405ec803b715de544afb7c1f6703da7859fefc3c684cb06f4890db9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

Security for obscurix 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for obscurix-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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