Curl Programming Language
Curl is an open-source programming language built on Python technology, designed to be simple and expressive. Every statement uses a keyword{...}\ style, and blocks are opened with - and closed with --\.
Requirements
- Python 3.7+
- Node.js (optional — only needed for
otherCoding{"JavaScript", ...}blocks)
Installation
From PyPI (recommended):
pip install curl-programming-lang
To upgrade:
pip install --upgrade curl-programming-lang
From source:
git clone https://github.com/gautamritvik/Curl-Programming.git
cd Curl-Programming
pip install -e .
Running a Curl program
curlang [YOUR-FILE].curl
Syntax Reference
Print — pcType
Outputs text to the console. Supports string concatenation with +.
pcType{"Hello, World!"}\
pcType{"Hello, " + var{name} + "!"}\
Input — pcAsk
Prompts the user for input. The result is accessed anywhere with input{ans}.
pcAsk{"What is your name?">>}\
pcType{"You said: " + input{ans}}\
Variables — var
Assign a value with var{name, value}\. Reference it later with var{name}.
var{name, "Ritvik"}\
pcType{var{name}}\
Variables can hold strings, numbers, or lists.
Lists — list
Create a list with items separated by ;. Typically assigned to a variable.
var{colors, list{"red"; "green"; "blue"}}\
pcType{var{colors}}\
Functions — createFunc / func
Define a function with createFunc{name}- and close it with --\. Call it with func{name}\.
createFunc{greet}-
pcType{"Hello from greet!"}\
--\
func{greet}\
Conditionals — if / elif / else
Simple if:
if{var{score} >= 90, then}-
pcType{"Grade: A"}\
--\
If / else:
if{var{score} >= 90, then}-
pcType{"Grade: A"}\
else:
pcType{"Grade: B or below"}\
--\
If / elif / else:
if{var{score} >= 90, then}-
pcType{"Grade: A"}\
elif{var{score} >= 80, then}-
pcType{"Grade: B"}\
else:
pcType{"Grade: C or below"}\
--\
For
if+elifchains without anelse, close with--\--\.
Supported comparison operators: == != < > <= >=
Embedded code blocks — otherCoding
Run a block of code written in another language. The closing }\ must be on its own line.
otherCoding{"Python",
x = 10
print("x =", x)
}\
Supported languages:
| Language | Status |
|---|---|
| Python | Fully supported |
| JavaScript / Node.js | Supported (requires Node.js) |
| Java, C, C++ | Not supported at runtime |
Import — import
Import a Python package and give it a nickname.
import{"math", m}\
AI — pcAI
(Stub — reserved for future AI integration.)
pcAI{".on", "You are a helpful assistant", "profanityControl"}\
Symbols
| Symbol | Meaning |
|---|---|
\ |
End of a statement |
- |
Start of a block |
--\ |
End of a block |
{} |
Argument container |
"" |
String / text data |
; |
Separator inside lists |
, |
Separator between parameters |
== |
Equals |
!= |
Not equals |
= |
Assignment |
+ |
Concatenation / addition |
Example program
var{name, "Ritvik"}\
pcType{"Hello, " + var{name} + "!"}\
var{score, 95}\
if{var{score} >= 90, then}-
pcType{"You got an A!"}\
else:
pcType{"Keep trying!"}\
--\
createFunc{sayBye}-
pcType{"Goodbye, " + var{name} + "!"}\
--\
func{sayBye}\
License
This project is licensed under the Apache License 2.0 (OSI-approved). See the full license at: https://github.com/gautamritvik/Curl-Programming/blob/main/LICENSE
Metadata
Release files for curl-programming-lang 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| curl_programming_lang-1.0.2.tar.gz | 12.4 kB | With provenance | Details for curl_programming_lang-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| curl_programming_lang-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for curl_programming_lang-1.0.2-py3-none-any.whl |
Total release size: 26.2 kB
Release files / curl_programming_lang-1.0.2.tar.gz
| Download URL | curl_programming_lang-1.0.2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd4b7cb2a878b15bf547dd095a8c37834de788730f723d8ee46326acdbd5b4a6
|
|
BLAKE2b-256 checksum How to use checksums |
db84f30c9fbd940a64007a819696c70fa7f1244b24efdc409f81084808f60e73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logRelease files / curl_programming_lang-1.0.2-py3-none-any.whl
| Download URL | curl_programming_lang-1.0.2-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de40631774376d0b05de71666bbeb1ce6915df388d4a3f75dc59d8aca85662a3
|
|
BLAKE2b-256 checksum How to use checksums |
751a2275326e8250acdad77ebbe7c78ebbffd9e51a305040ccb236da6d526d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 9, 2026.
Transparency logSecurity for curl-programming-lang 1.0.2
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.
Attestation for curl_programming_lang-1.0.2.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 Jun 9, 2026.
Transparency logA 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.