Skip to main content

No project description provided

Project description

Fast Unit - Rust Unit Management for Python

Originally created as a faster version of Unum for use in Python-based FRC robot code.

Building and Installing for Local Machine

maturin build --release  # This will generate wheels and put a native library in ./fast_unit/
pip install .  # Installs to your python interpreter

Cross Compilation for RoboRIO (WIP)

Getting Required Files

In order to compile for RoboRIO, you need to copy the contents of /usr/local/lib and update the RIO_ROOT to reflect where you copied them. This is assuming you have already installed python on your RIO using RobotPy.

This is the command I used to accomplish this:

scp lvuser@roboRIO-XXXX-FRC.local:/usr/local/lib ./RIO_ROOT/usr/local/lib

Installing ARM Linker

Rust needs an arm linker to compile arm binaries, which can be installed fairly easily. On debian, run the following:

sudo apt install gcc-arm-linux-gnueabi

Building

Once you have the required tools, running the script below should compile and build the wheels.

# Add RIO's target triple
rustup target add arm-unknown-linux-gnueabi

# Set cross-compilation environment variables
export PYO3_CROSS_PYTHON_VERSION=3.10
export PYO3_CROSS_LIB_DIR="RIO_ROOT/usr/local/lib"

# Build wheels for RIO
maturin build --target=arm-unknown-linux-gnueabi --rustc-extra-args="-C linker=arm-linux-gnueabi-gcc"

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

fast_unit-0.5.1.tar.gz (55.6 MB view details)

Uploaded Source

Built Distributions

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

fast_unit-0.5.1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl (228.8 kB view details)

Uploaded PyPymanylinux: glibc 2.24+ x86-64

fast_unit-0.5.1-cp310-cp310-manylinux_2_24_x86_64.whl (227.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64

fast_unit-0.5.1-cp310-cp310-manylinux_2_24_armv7l.whl (223.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ ARMv7l

fast_unit-0.5.1-cp310-cp310-linux_armv7l.whl (223.3 kB view details)

Uploaded CPython 3.10

fast_unit-0.5.1-cp39-cp39-manylinux_2_24_x86_64.whl (227.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

fast_unit-0.5.1-cp38-cp38-manylinux_2_24_x86_64.whl (227.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

fast_unit-0.5.1-cp37-cp37m-manylinux_2_24_x86_64.whl (227.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.24+ x86-64

fast_unit-0.5.1-cp36-cp36m-manylinux_2_24_x86_64.whl (225.2 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.24+ x86-64

File details

Details for the file fast_unit-0.5.1.tar.gz.

File metadata

  • Download URL: fast_unit-0.5.1.tar.gz
  • Upload date:
  • Size: 55.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.12.9

File hashes

Hashes for fast_unit-0.5.1.tar.gz
Algorithm Hash digest
SHA256 68536c4c531a3f42bd71b17bf39ab6d92d0a985fbe362ab02e6df8f2a21d9fee
MD5 0150b2d22bdcf9c978be6b710a36925a
BLAKE2b-256 14a74a386c1d89f34e9ccffd8be1163219790382ed260af0ec27465a644a55b4

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 7d2c5ea48189ebdbb5bc576f367e12d9ab17c997b22098068df9c2a9178aba04
MD5 628d9e75d3be5197ddbc9213fd24d497
BLAKE2b-256 b4e846fc79fe898a7d9a0f79797d49f3c9f04cf588e8ca73ed86453e05ce1293

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 773e912bf7a2efef3dc7e9dc6e24ba1a1af1ded4877b9b094daa93af2dddd480
MD5 0594c1f57f4cbccf4a49f659c3df63e9
BLAKE2b-256 69070d7774a0d1102fd9f80d9cc5b217df0a83dde49a63d40531308a6476bd41

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp310-cp310-manylinux_2_24_armv7l.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp310-cp310-manylinux_2_24_armv7l.whl
Algorithm Hash digest
SHA256 6f5d106c2a9433bf98f504656cfceb70d2bb0117ce377339f113531712a388c9
MD5 3540385d823114ed9188cf6b63cae41a
BLAKE2b-256 224b560409d908fe038372bb52c0f0f5f8613445436438b7fe50612039b1d475

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp310-cp310-linux_armv7l.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp310-cp310-linux_armv7l.whl
Algorithm Hash digest
SHA256 9afe8fa8b3f2e9f57b4cdeb6d975c514d00f369fd9b7ba9b9c4ddfb5c223626b
MD5 6f518bdc4451ff84df04d5ff81712f11
BLAKE2b-256 417774c2402117e85c3dc629c62d18b93abda315fb962beda77a85905ad05621

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 ad3cf66c709a1071aabce2941aba544f8f7750525874f9e66d565dd7f6e36fbd
MD5 ac4b7dff99e441838989a18a11811c0f
BLAKE2b-256 07eb4d2c92e823ce1c3e98870b9068b137412e61b9ab84fe77fa5079628b4fed

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 bfebfe1d977f0f09593712e371baf9b719c8a9dc5395c25ad2e29a96e72975bc
MD5 a0d4f74d78b9700c168ed271a561ea76
BLAKE2b-256 fbb938befa277f690c09dbeeb571210276a3d98a18568186d4f0b9e8b80fb8a4

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 a38522c2e3042de10938c293c7028a8fd14b5c5c63d4c2e39081b9467dc25a91
MD5 0bae3e203e73e03077c9ef9539db1602
BLAKE2b-256 1b395204198958dd55d662c5f67a998a88624a1bca18d723bf344fe2158a6f50

See more details on using hashes here.

File details

Details for the file fast_unit-0.5.1-cp36-cp36m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for fast_unit-0.5.1-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 49d16f74826846ce99a84f779da55a35137a16dd116da53efb40baf7029b072a
MD5 4b34778c06da8e0ee8096491eff29466
BLAKE2b-256 3eb62666b41c2d1d8930c47b7ffc6f6e424c02e74d1dcf8a0cec4be50474d26d

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