Skip to main content

A library to manipulate batches of examples

Project description

redcat

CI Documentation Nightly Tests Nightly Package Tests
Codecov
PYPI version Python BSD-3-Clause Code style: black Doc style: google
Downloads Monthly downloads

logo


Philosophy

  • BatchedTensor and BatchedTensorSeq must behave like torch.Tensor
  • BatchedArray and BatchedArraySeq must behave like numpy.ndarray
  • BatchedTensor (resp. BatchedTensorSeq) does not have to behave like BatchedArray ( resp. BatchedArraySeq)

Installation

We highly recommend installing a virtual environment. redcat can be installed from pip using the following command:

pip install redcat

To make the package as slim as possible, only the minimal packages required to use redcat are installed. To include all the dependencies, you can use the following command:

pip install redcat[all]

Please check the get started page to see how to install only some specific dependencies or other alternatives to install the library. The following is the corresponding redcat versions and supported Python, PyTorch and NumPy versions.

redcat coola numpy torch python
main >=0.0.20,<0.2 >=1.22,<2.0 >=1.11,<3.0 >=3.9,<3.12
0.0.17 >=0.0.20,<0.0.25 >=1.22,<1.27 >=1.11,<2.2 >=3.9,<3.12
0.0.16 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.15 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.14 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.13 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
older versions
redcat coola numpy torch python
0.0.12 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.11 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.10 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.9 >=0.0.20,<0.0.24 >=1.22,<1.27 >=1.11,<2.1 >=3.9,<3.12
0.0.8 >=0.0.20,<0.0.21 >=1.21,<1.26 >=1.11,<2.1 >=3.9,<3.12

Contributing

Please check the instructions in CONTRIBUTING.md.

API stability

:warning: While redcat is in development stage, no API is guaranteed to be stable from one release to the next. In fact, it is very likely that the API will change multiple times before a stable 1.0.0 release. In practice, this means that upgrading redcat to a new version will possibly break any code that was using the old version of redcat.

License

redcat is licensed under BSD 3-Clause "New" or "Revised" license available in LICENSE file.


The logo was generated with Fooocus

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

redcat-0.0.18.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

redcat-0.0.18-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

Details for the file redcat-0.0.18.tar.gz.

File metadata

  • Download URL: redcat-0.0.18.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for redcat-0.0.18.tar.gz
Algorithm Hash digest
SHA256 fc43f5796b6d3b45a8970a7aae0f7dcd4382947f559640be93dbcc4cf5ee74a7
MD5 2bbb17d8a5e236fedf2a0bb6d811edf6
BLAKE2b-256 1579057c4219e39182a78907ff4183d723518af1c1ae608d11714c883fbb360b

See more details on using hashes here.

File details

Details for the file redcat-0.0.18-py3-none-any.whl.

File metadata

  • Download URL: redcat-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 57.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure

File hashes

Hashes for redcat-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 42598d58c8cc47e0b26e88a4598645e4326c32e8986237f33b6ccfa780a5f947
MD5 af64edc478641e80d906a492fe31fa20
BLAKE2b-256 e13641daf47bf2bffe184e370d37ade8cb8680166fdd6b7e4e0f191f39e51ca0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page