Skip to main content

No project description provided

Project description

locusctl and Utilities Rust Library

Requirements

This project uses Rust and Python

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 --build which creates a wheel that can be moved to the python project, or maturing --development which 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

locus_rs-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

locus_rs-0.1.0-cp312-cp312-manylinux_2_34_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

locus_rs-0.1.0-cp312-cp312-macosx_14_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

locus_rs-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file locus_rs-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for locus_rs-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d831447478d41f96ad66c16f9c8ac2121356cf9e24a5582002337d0d5b858e41
MD5 a252275d4a3ebfd73438ebc108e82559
BLAKE2b-256 3a0a88f768341a7bd485fc15eddeb0d0a437284076b18200c5af48e91816aede

See more details on using hashes here.

File details

Details for the file locus_rs-0.1.0-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for locus_rs-0.1.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 39290a698509c6a0c0bf08835d03361637c10cba61a6eb21ead81d7e6ce2242a
MD5 4edd4a8d169056622096ad6b6a60b1ad
BLAKE2b-256 7e88186f64986128ed9bc413aca6884a13d1c27f9bb74a44aea87b10c19329d9

See more details on using hashes here.

File details

Details for the file locus_rs-0.1.0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for locus_rs-0.1.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5ae2cad29473883a04f2a89815e8d0e542ae8f8b4e6b6a5ef2d1f227b06ee246
MD5 645caacc923b2bbcb3a61fe03fe7f336
BLAKE2b-256 0a3e66ce3f5fdf02c7543cc7e87a99b5c4f9966f2e3a8cfdbd04167b9305bc38

See more details on using hashes here.

File details

Details for the file locus_rs-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for locus_rs-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 903b27632553886aba9b8f63a7dafd857f537ecfdf625050e270d132ae3a021e
MD5 61f9188be4e687ec50bb09dbb44e1ff4
BLAKE2b-256 790acf0f5061ab10eb0b280af5303f5d2736d6d92858cb1bdb37a84962c11d76

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