Skip to main content

Minimal PufferLib core functionality with vectorized environments

Project description

PufferLib Core

Minimal PufferLib core functionality with vectorized environments.

This package contains only the essential components:

  • spaces: Observation/action space handling
  • emulation: Environment compatibility layer for Gym/Gymnasium/PettingZoo
  • vector: Vectorized environment implementations

For the full PufferLib with training capabilities and environments, see the main pufferlib package.

Installation

Basic Installation (Python-only)

pip install pufferlib-core

Installation with C++/CUDA Extensions

To enable the pufferlib._C extensions (required for advanced features like CUDA advantage computation):

# First install torch
pip install torch

# Then install with extensions
PUFFERLIB_BUILD_EXT=1 pip install pufferlib-core[ext]

Or you can install the dependencies and build in separate steps:

# Install with extra dependencies
pip install pufferlib-core[ext]

# Then rebuild with extensions
PUFFERLIB_BUILD_EXT=1 pip install --upgrade --force-reinstall --no-deps pufferlib-core

Usage

After installation with extensions, you should be able to import the C extensions:

import pufferlib
from pufferlib import _C  # This will only work if extensions were built

Development

To build extensions in development mode:

PUFFERLIB_BUILD_EXT=1 python setup.py build_ext --inplace

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

pufferlib_core-3.0.4.tar.gz (20.4 kB view details)

Uploaded Source

Built Distributions

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

pufferlib_core-3.0.4-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

pufferlib_core-3.0.4-cp311-cp311-macosx_11_0_arm64.whl (37.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file pufferlib_core-3.0.4.tar.gz.

File metadata

  • Download URL: pufferlib_core-3.0.4.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for pufferlib_core-3.0.4.tar.gz
Algorithm Hash digest
SHA256 5bae2e61f1115e3f36217b672ba0cb77aad9d58b5f14a36e4b3c616c500a773d
MD5 dad8ee728bb02941a1f0ef7a07eac8ae
BLAKE2b-256 b1ab86981ad5d885368303cb56cfe681ab8c466799f3ee44e70a7bd17adaf8c5

See more details on using hashes here.

File details

Details for the file pufferlib_core-3.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pufferlib_core-3.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 279b7d7b5ffa87a1fd77a85eed34828ecd52551553341dbbba8cebc60002e70f
MD5 ae912639565904c4ee62b850a9c89532
BLAKE2b-256 61fadf2cbfe489c678b90f9f9e7398d505868adb86fcd70e1f97771e76dbc89c

See more details on using hashes here.

File details

Details for the file pufferlib_core-3.0.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pufferlib_core-3.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e55a3099322dfdeb1d6976cf83c62198e1243402ab0ad33e79b5674f36a855bc
MD5 b633eb9a43da732f4051a238fa89ee47
BLAKE2b-256 cef6a0f0feabcc86b1d0f79a224f9077135ac806ee3f0700b3e5fd9b69535395

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