Python bindings for the crate twmap
Project description
TwMap Python Module
Safely parse, edit and save Teeworlds and DDNet maps - in Python!
See the Rust library twmap for details on the wrapped library.
Installation
Simply do pip install twmap
!
Usage
The help
function is your friend!
Once you imported twmap
, do help(twmap.Map)
to access the documentation of the Map
struct.
It also contains important general knowledge about the module.
To load your first map, do map = twmap.Map(path-to-map)
.
To see the attributes and documentation about an object... help
helps you!
For example, have a look into help(map.groups)
and help(map.groups[0])
.
The first one will give you methods on the group collection and the second one attributes and methods on group objects.
If you are confused about something in the module, the general information in help(twmap.Map)
might help you.
Manual Building (on Linux)
You need Rust installed on your system. To compile twmap in release mode, execute the following command in the source root:
cargo build --release
Locate the file target/release/libtwmap.so
.
This file is only importable under twmap.so
.
Symlink or copy it to your desired location.
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
Built Distributions
Hashes for twmap-0.3.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102742b3483d090102866bb1618386f0f74bf88d6c083bc199199f8a1275a04f |
|
MD5 | 6b4dc87ea4d72ced6897756cf2e4fb2c |
|
BLAKE2b-256 | eef3ca15713f54b896f2dac1f066d9aa7155e37d148d00463be5656e6bd744e5 |
Hashes for twmap-0.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cce139acf7d324c970247f9dc0c336c94bfc5a9b5eb94ef7c42f504865a6bb5 |
|
MD5 | 7284699d3e870a10b9f895dce0811ec6 |
|
BLAKE2b-256 | dec082234269e1254a6cb8824723841903257849a57353de842fc79fae9062d0 |
Hashes for twmap-0.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35b354127c2172ec858c4c9f1aa03947b94116daa574fe059832ede8e20f3bdf |
|
MD5 | c8304dcbcea7858c68ff323b1875deb6 |
|
BLAKE2b-256 | fd4f559cf357cf43b0affb6a8d8218423a2d394ead36f2ebedfd01e63db2ee69 |
Hashes for twmap-0.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be95c3a9ca6cc9ed54b8e597c054878108409a81516902d269773084604ea7d3 |
|
MD5 | ec0f7ef43ce12b09dbd5e74cbf4e8e70 |
|
BLAKE2b-256 | 5b91ad857354e61fd4b14a7b98c1759bf4ee6921cfbf4571acd238666eff2664 |
Hashes for twmap-0.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5634d25a4015fc9f66b26aef37be2a4b10552085010f526a7218a2140ad075c |
|
MD5 | b0989264ba0e41f9e69e97a93bcc4bee |
|
BLAKE2b-256 | df12f612e1133f1feb3863da3ca54034d48db0a6913f77a08f160a124d4554ad |
Hashes for twmap-0.3.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 727f96cbe9d6d2eaf7e5639285d5a5a9c8df064902423e0eab4371988eed7056 |
|
MD5 | c813211976b7ca10366c76b3b27d17c0 |
|
BLAKE2b-256 | 5d412600ee6d16864f7f286cba6617c9de562b150497faab5252c78ef574cb3b |