Skip to main content

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.

Publishing Steps

These steps are the ones I use to upload new versions of twmap-py to pypi.

Linux:

  1. podman pull ghcr.io/pyo3/maturin
  2. podman run --env "MATURIN_PYPI_TOKEN=<token>" --rm -v $(pwd):/io ghcr.io/pyo3/maturin publish -f

Cross-compiling to Windows:

  1. Download the newest version of the oldest non-end-of-life Python edition "Windows x86-64 embeddable zip file" from https://www.python.org/downloads/windows/. Last used: https://www.python.org/ftp/python/3.8.2/python-3.8.2-embed-amd64.zip
  2. Unzip in project root
  3. MATURIN_PYPI_TOKEN='<token>' RUSTFLAGS='-C target-feature=+crt-static' PYO3_CROSS_LIB_DIR='./<path-to-unzipped-python>' maturin publish --target x86_64-pc-windows-gnu (replace the directory path)

Metadata

Release files for twmap 0.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for twmap 0.6.6
File
twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl PyPy 3.11 PyPy 3.11 7.3 Windows x86-64 Details
twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux musl 1.2+ x86-64 Details
twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl PyPy 3.11 PyPy 3.11 7.3 Linux musl 1.2+ ARM64 Details
twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details
twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-32 Details
twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ ARM64 Details
twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 11.0+ ARM64 Details
twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 10.12+ x86-64 Details
twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl PyPy 3.10 PyPy 3.10 7.3 Windows x86-64 Details
twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl PyPy 3.9 PyPy 3.9 7.3 Windows x86-64 Details
twmap-0.6.6-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
twmap-0.6.6-cp313-cp313t-win_amd64.whl CPython 3.13 CPython 3.13 free-threading Windows x86-64 Details
twmap-0.6.6-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl CPython 3.7 abi3 Linux musl 1.2+ x86-64 Details
twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl CPython 3.7 abi3 Linux musl 1.2+ ARM64 Details
twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 abi3 Linux glibc 2.17+ x86-64 Details
twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.7 abi3 Linux glibc 2.17+ x86-32 Details
twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl CPython 3.7 abi3 macOS 11.0+ ARM64 Details
twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl CPython 3.7 abi3 macOS 10.12+ x86-64 Details

Total release size: 31.8 MB

Release files / twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl
Size 1.3 MB
Tags PyPy 3.11 PyPy 3.11 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
453d88e630f0fb4e4a31b6729811cdc3a0db936f70792782918a2b24e434970c
BLAKE2b-256 checksum
How to use checksums
10660cd08c5db977a0248aae3821ec74c327932374997bfe947efad3a1554886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Size 1.4 MB
Tags Linux musl 1.2+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
6051d463911de7a52b7e168831d72ee43d28626806707c04f84a11d42d1c160f
BLAKE2b-256 checksum
How to use checksums
8fb9d74cbe5e1836ecabc821259593345c76c85205d19f8c3d0d82751b4d42c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Size 1.3 MB
Tags Linux musl 1.2+ ARM64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
5011c7d97cc3c97249e6466f2d2b3dce7442f175dc9bc5715c462f724b4020a3
BLAKE2b-256 checksum
How to use checksums
698e863f657f13a9f56c7d78cd60aee0af713b43fc2873e6667225ad6fae5e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.4 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
9507dcc384c1cec819f80b724f933942f4a68c3b4fea8af043dfb1bc42200b64
BLAKE2b-256 checksum
How to use checksums
41d693da3ecf3546dc45d0c4460ecd4a3331f8799d53c3a8bb673db32d3807b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Size 1.5 MB
Tags Linux glibc 2.17+ x86-32 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
c33dda1018b7f649264bf41ee9483bb91f570c34d8bbd0199181e8e36f09bee5
BLAKE2b-256 checksum
How to use checksums
e6b3d9a11bd72feb2ed858d6b2ecd1125255c315ae467c7e3968794d5dce90df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags Linux glibc 2.17+ ARM64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
2ac46022ade9cb2a6c3ae582916be7d072216979c6b24d97d9185deaac44126f
BLAKE2b-256 checksum
How to use checksums
12d441f13fbdaf5c6fa95fc5a99933863aff8123d560f1af28d73c4fb570a514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl
Size 2.5 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2b7948f6bc6ef51bc3db0bc2245e1d0a508be4ca969ca486c203350fc3c45965
BLAKE2b-256 checksum
How to use checksums
c8b626757933e7ec4e912b0b3614e91602cf7313a91e4b66ce93e1054465d568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl

Download URL twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl
Size 2.6 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8354da3f1001d5d7c7e860e242d1bed652f3e33011f6e2ed8545a1a1a0faf877
BLAKE2b-256 checksum
How to use checksums
ad276aed7a7fb31d6f612b14f7b72d28ce662f2202fb3c597408fd246508cb00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl

Download URL twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl
Size 1.3 MB
Tags PyPy 3.10 PyPy 3.10 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
f65d8f37751db6e3bb063b59a004fb9f056af72c2cc9fd1ef69704da0e150428
BLAKE2b-256 checksum
How to use checksums
cf43cbe3e7ad8f88b4e3eaf3a20c327007c220a3f22c635b9b1a4fe0019c4851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl

Download URL twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl
Size 1.3 MB
Tags PyPy 3.9 PyPy 3.9 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
41f5b6f90b470575ec93ddef947f8bcb5ccbd3e49e04b5bec5d9257aadfa5deb
BLAKE2b-256 checksum
How to use checksums
3cc4f56b13135ad5f8dc457f3305d9147ec49f9d0ee02cd7967983d48735b9a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp314-cp314t-win_amd64.whl

Download URL twmap-0.6.6-cp314-cp314t-win_amd64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
93803dd262e0324b577134c7a9c85b450e65e166b8492c5bc493a1fb5740f8c6
BLAKE2b-256 checksum
How to use checksums
040225db94a74d69faf94d431682c62e2dfb8858a9941eddf2850e9fe0c3f684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp313-cp313t-win_amd64.whl

Download URL twmap-0.6.6-cp313-cp313t-win_amd64.whl
Size 1.3 MB
Tags CPython 3.13 CPython 3.13 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
9c9e86e1ecf9e5fcad154ab3316c8081c3bd7dad528ce75bc52655fe581a2a33
BLAKE2b-256 checksum
How to use checksums
3811915ddef8e4203806ca1c6b2381264de1cd3cfc2615611dca9021058b2a2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-win_amd64.whl

Download URL twmap-0.6.6-cp37-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3d62498889f0a97f192452cfff8c183ec97066ff8cb9657f10b5437418ef4cc8
BLAKE2b-256 checksum
How to use checksums
842185c88e20e3697d38fd4bfc102fe8334121bd06d7399ca650e74e1e323bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl

Download URL twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl
Size 1.4 MB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
71126094bffaf2612c677b5187eeceb14437be89f71d598ea9d2118d15273793
BLAKE2b-256 checksum
How to use checksums
130ac976a199e52c96b5a7e9f6baa004a4aa66c6437817a2cfd9a3e24480508c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl

Download URL twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl
Size 1.3 MB
Tags CPython 3.7 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
1f2ab7c8526858c660a957e0e026243716d4e0eadb85efd9e532bc3779db5644
BLAKE2b-256 checksum
How to use checksums
bdfa0e9a4564ccb9449144150048f3c62b0ca1a7f180d7df0c35823eb1a6c431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.4 MB
Tags CPython 3.7 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
bf996ed78773f08a5d4a707b16de73cdb0dc914d05d745c4a49c6e80afae01e3
BLAKE2b-256 checksum
How to use checksums
f1ebb510a797ddcb7b5a7e45b463464bd5b4011118ec2bfd5e5464b04e820ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Size 1.5 MB
Tags CPython 3.7 Linux glibc 2.17+ x86-32 abi3
SHA-256 checksum
How to use checksums
408f146c07cb70fc58522f6042d4e710e6fbf7b892fc3259ff5afe7edd38bf09
BLAKE2b-256 checksum
How to use checksums
164033d4fd9b78326cfb8d7bb3570b3fcb7b84bb4a3aa68f589932b834b886be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
30a22a4c2164e93a4c72f6e9805dd70f8c2c44209db2b044974404e7e5828865
BLAKE2b-256 checksum
How to use checksums
05be7f090d2900da38e54dda022066b9b2cce6a5be371b2d519364eb4b2519ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl

Download URL twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl
Size 2.5 MB
Tags CPython 3.7 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6441bcbc03704f6129db527b0cc1489dff6f76379811c04b9489ee46ef8df356
BLAKE2b-256 checksum
How to use checksums
ed6b25e4e7a15a50fc172d12b68a91cbccb5149bdaaa55a3c9ee4dd387843a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl

Download URL twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl
Size 2.6 MB
Tags CPython 3.7 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
efa7b1c129621025f1617b87e1ca98f2f719f057ecab2b468b1a84f93bc0180b
BLAKE2b-256 checksum
How to use checksums
4e7daedb92366d31ff284421c3654c2e11533209862258da2e9ce59d16cc4557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release history Release notifications | RSS feed

This release

0.6.6 This release

20 release files

0.6.5

12 release files

0.6.3

12 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.3

9 release files

0.4.2

1 release file

0.4.1

9 release files

0.4.0

6 release files

0.3.0

6 release files

0.2.0

6 release files

0.1.1

5 release files

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page