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
Release history Release notifications | RSS feed
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.7.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for cairo_nile-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d0a8f11cba93959db7c279bdedcdfc59786734360465a1cf462673d64cb6332 |
|
MD5 | f93759187c6548364a6a3cb5a1db7e95 |
|
BLAKE2b-256 | c6351f75cb2a611d488d217c18af90fbcafcbfce5ce91b6ee8856ea417e7e73d |