crunch-cli - CLI of the CrunchDAO Platform
Project description
CrunchDAO CLI
This Python library is designed for the CrunchDAO Platform, offering convenient access to competition's data and enabling effortless submission. When utilized in the command-line interface (CLI), its goal is to deliver a user experience akin to GitHub, enabling you to seamlessly push the code from your local environment.
Installation
Use pip to install the crunch-cli
.
pip install crunch-cli --upgrade
Usage
import crunch
crunch = crunch.load_notebook()
# Getting the data
X_train, y_train, X_test = crunch.load_data()
crunch.load_data()
accept arguments for read_parquet
.
crunch.load_data(
engine="fastparquet"
)
Submit with Crunch CLI
Usage: crunch push [OPTIONS]
Send the new submission of your code.
Options:
-m, --message TEXT Specify the change of your code. (like a commit
message)
-e, --main-file TEXT Entrypoint of your code. [default: main.py]
--model-directory TEXT Directory where your model is stored. [default:
resources]
--help Show this message and exit.
Detecting the environment
Detecting whether you are running inside the runner or not, allows you to configure your program more precisely.
import crunch
if crunch.is_inside_runner:
print("running inside the runner")
else:
print("running elsewhere")
model.enable_debug()
logger.set_level("TRACE")
Competition Links
Contributing
Pull requests are always welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the GitHub repository.
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
Built Distribution
File details
Details for the file crunch_cli-5.4.2.tar.gz
.
File metadata
- Download URL: crunch_cli-5.4.2.tar.gz
- Upload date:
- Size: 72.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9b49a0f4b69224614ae4817ba503fe9147e6c76dfdf96a0cf431b9c75c4b85 |
|
MD5 | fcc4feced83fe85cecb59730bf21416a |
|
BLAKE2b-256 | 38daa4c3e6ecb2f4489af7e5fc3f63f589f2ee43cc2ddd608e0e721279ce8756 |
File details
Details for the file crunch_cli-5.4.2-py3-none-any.whl
.
File metadata
- Download URL: crunch_cli-5.4.2-py3-none-any.whl
- Upload date:
- Size: 97.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8cc1f0e48c17287d3156ed79f227206486891d361ef239bd228d80c1d8f9610 |
|
MD5 | 01e2bee70dc5773c167480a73b2f71bd |
|
BLAKE2b-256 | 91bea7f594219f86b276cd995bdcdeb36bc0e74715d91623d7a058d7577bd6fa |