No project description provided
Project description
locusctl and Utilities Rust Library
Requirements
This project uses Rust and Python
- Rust
- Python 3.12
Building
This project is composed of two artifacts. A binary called locusctl, and a
wheel called locus_rs.
Building the CLI
To only build the CLI (locusctl) only Rust is required:
cargo build --bin locusctl
Building the Wheel Library
Building the wheel requires both Rust and Python. For this we need to create a
virtualenv and then install maturing to make the build.
Setup the virtualenv and install dependencies:
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Build the wheel:
maturin build
Running in Development
To run the CLI for development you can use the run subcommand and then pass in all the additional subcommand and flags required for it to work:
cargo run -- upload --url https://en.wikipedia.org/wiki/Michelin_TRX
Using the Wheel locally
The wheel was developed to be used as a Python library, this library should be added to ferb.
- First build the wheel. Run
maturin --buildwhich creates a wheel that can be moved to the python project, ormaturing --developmentwhich puts the library into the local .env (probably not useful in this context. More useful if the rust was embedded in the python project) - Copy the wheel file to the python project. (location to be determined, but for
now wheels subdir)
cp /Volumes/devel/omniarcs/github.com/locusai/locus-cli/target/wheels/locus_rs-0.1.0-cp312-cp312-macosx_11_0_arm64.whl ../locus-ferb/wheels - In Ferb or target python add the wheel into the requirements.txt, and then run pip
Note: For now the use of the library can be found in this commit https://github.com/locusai/locus-ferb/commit/4c71785e2f9da649c2364187512c4b84cca4d924#diff-ee8cec5db1e429ed2f507e426d2eff6dd75b69755a2f493e4425caaf9e9d1630R31
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file locus_rs-0.2.2-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: locus_rs-0.2.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 4.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b372a1118cb79eb546e8da658dc188b2cfb510b33a86be0d7e5b34e0dfac8242
|
|
| MD5 |
fd0f1efd30b97e733613e8142455a297
|
|
| BLAKE2b-256 |
fb085ea0af55deb16af353aba89a36462efd9b6012e83958a74d824efbda7f13
|
File details
Details for the file locus_rs-0.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: locus_rs-0.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063ae517c85f0f13b4bcdc804acf8d1fea646dea8ff75ca29d06d993bcdc1fe3
|
|
| MD5 |
a894d23e28a557f3916e84ffe610dc33
|
|
| BLAKE2b-256 |
83934fed80a5a9296d1624ba68ed44f8680a8c3fcae5bb2ff5bdb7e7b79ac351
|
File details
Details for the file locus_rs-0.2.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: locus_rs-0.2.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7c2f0a4b10eac33eb209ab5504da49ef5afda059f453b6ba034719ad30f98d9
|
|
| MD5 |
b3f2828411e9a62c2b536c7fdf3a2326
|
|
| BLAKE2b-256 |
e292b862ea04120d972c435efd77662c6b92e4b923b07fd7ea3563d452752b15
|
File details
Details for the file locus_rs-0.2.2-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: locus_rs-0.2.2-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400cab892bb805e572135126a47578073ba7396adce9695749fc58f7234bb6b3
|
|
| MD5 |
d8ad1867244d07665097224b50ea8870
|
|
| BLAKE2b-256 |
ec97e519812d9076fe918f426e14ce0af9e6fd7f86932ccd39c3c5976ba0d1ef
|