Skip to main content

StarkNet/Cairo development toolbelt

Project description

⛵ Nile

Navigate your StarkNet projects written in Cairo.

Installation

pip install cairo-nile

Usage

Install Cairo

Use nile to install a given version of the Cairo language. Given Cairo's fast development pace, this command is useful to install the latest version.

nile install 0.4.0

Compile

Compile Cairo contracts. Compilation articacts are written into the artifacts/ directory.

nile compile # compiles all contracts under contracts/
nile compile contracts/MyContract.cairo # compiles single contract

Example output:

$ nile compile
Creating artifacts/abis/ to store compilation artifacts
🤖 Compiling all Cairo contracts in the contracts/ directory
🔨 Compiling contracts/Account.cairo
🔨 Compiling contracts/Initializable.cairo
🔨 Compiling contracts/Ownable.cairo
✅ Done

Clean

Deletes the artifacts/ directory for a fresh start ❄️

nile clean

Hacking on Nile

Nile uses tox to manage development tasks, you can get a list of available task with tox -av.

  • Install a development version of the package with python -m pip install .
  • Run tests with tox
  • Build the package with tox -e build
  • Format all files with tox -e format
  • Check files formatting with tox -e lint

License

Nile is released under the MIT License.

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

cairo-nile-0.0.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cairo_nile-0.0.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file cairo-nile-0.0.5.tar.gz.

File metadata

  • Download URL: cairo-nile-0.0.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for cairo-nile-0.0.5.tar.gz
Algorithm Hash digest
SHA256 41fad06d7926a6d99bad11c320d5daadc46d58cee01405bebb95c7404f4aa3ec
MD5 66c0bce6a583967c4a03f490e3709008
BLAKE2b-256 176fdeb612b871d522b39b075e6440f688909bbb6ed21a74a9b20779054fbe14

See more details on using hashes here.

File details

Details for the file cairo_nile-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: cairo_nile-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for cairo_nile-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b45e718633d98d8587e573b5801e2f7282b45bd416ea2754766c0db35f3f7a38
MD5 46919b0d99cb81ee250205fd01609776
BLAKE2b-256 a73818614fb89e07396949755774c70c25002cfb7459ccfc3439c66cea7f1eb0

See more details on using hashes here.

Supported by

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