mansion-api
mansion-api provides the core programming interface and environment wrapper for MANSION. It features MansionGym, a Gymnasium-style environment backed by AI2-THOR. This package enables agents to seamlessly interact with multi-floor buildings using a unified AI2-THOR-style action API.
Installation
Install mansion-api directly from PyPI:
pip install mansion-api
Quickstart
To get started, you will need to initialize the MansionGym environment. Ensure your building_dir contains your per-floor scene JSON files formatted as floor_1.json, floor_2.json, etc.
from mansion_gym.mansion_env import MansionGym
# Initialize the environment
env = MansionGym(
building_dir="path/to/building",
initial_floor=1,
max_steps=1000
)
# Reset to get the initial observation
obs, info = env.reset()
Resources & Documentation
For comprehensive information regarding the multi-floor world model, the MansionWorld dataset, and detailed API signatures for skills, please refer to the official documentation:
Copyright © 2026 MANSION contributors.
Metadata
Release files for mansion-api 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mansion_api-0.1.3.tar.gz | 23.2 kB | Without provenance | Details for mansion_api-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mansion_api-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for mansion_api-0.1.3-py3-none-any.whl |
Total release size: 54.0 kB
Release files / mansion_api-0.1.3.tar.gz
| Download URL | mansion_api-0.1.3.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0efa6c95da460e8c5a11db0e53f52b2d401e497d6b9b68f62afc00d247565015
|
|
BLAKE2b-256 checksum How to use checksums |
d27d93e289cc85fa70383f7f1cb8b27885baec389212564977aacfd2c1ebb5bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / mansion_api-0.1.3-py3-none-any.whl
| Download URL | mansion_api-0.1.3-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3cc24814879da6b99f81681777f5c772d12cddff16fff2004f90c1866eae4e0
|
|
BLAKE2b-256 checksum How to use checksums |
ff2f7585d4b1b4d4820cb034329a19f908d5888ee0ff22d729ae14222ddd8217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for mansion-api 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.