Skip to main content

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.

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)

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl (1.3 MB view details)

Uploaded PyPyWindows x86-64

twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded PyPymusllinux: musl 1.2+ x86-64

twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded PyPymusllinux: musl 1.2+ ARM64

twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (1.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ i686

twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded PyPymacOS 11.0+ ARM64

twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded PyPymacOS 10.12+ x86-64

twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl (1.3 MB view details)

Uploaded PyPyWindows x86-64

twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl (1.3 MB view details)

Uploaded PyPyWindows x86-64

twmap-0.6.6-cp314-cp314t-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.14tWindows x86-64

twmap-0.6.6-cp313-cp313t-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13tWindows x86-64

twmap-0.6.6-cp37-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.7+Windows x86-64

twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (1.5 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ i686

twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 453d88e630f0fb4e4a31b6729811cdc3a0db936f70792782918a2b24e434970c
MD5 7b00afb1d885d5e1d85e194bca04e164
BLAKE2b-256 10660cd08c5db977a0248aae3821ec74c327932374997bfe947efad3a1554886

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6051d463911de7a52b7e168831d72ee43d28626806707c04f84a11d42d1c160f
MD5 1dded61565a54dc47166be2dc1b3cf37
BLAKE2b-256 8fb9d74cbe5e1836ecabc821259593345c76c85205d19f8c3d0d82751b4d42c4

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5011c7d97cc3c97249e6466f2d2b3dce7442f175dc9bc5715c462f724b4020a3
MD5 85c3c498143a5bcb8a8e77cb0527a2b6
BLAKE2b-256 698e863f657f13a9f56c7d78cd60aee0af713b43fc2873e6667225ad6fae5e73

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9507dcc384c1cec819f80b724f933942f4a68c3b4fea8af043dfb1bc42200b64
MD5 288f412ef4333059fd7ad9a173ea51d1
BLAKE2b-256 41d693da3ecf3546dc45d0c4460ecd4a3331f8799d53c3a8bb673db32d3807b5

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c33dda1018b7f649264bf41ee9483bb91f570c34d8bbd0199181e8e36f09bee5
MD5 28558ae3d3fee8434db3189c4d414ab5
BLAKE2b-256 e6b3d9a11bd72feb2ed858d6b2ecd1125255c315ae467c7e3968794d5dce90df

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ac46022ade9cb2a6c3ae582916be7d072216979c6b24d97d9185deaac44126f
MD5 a49998b6bd72e614b9d2523308c9d2bc
BLAKE2b-256 12d441f13fbdaf5c6fa95fc5a99933863aff8123d560f1af28d73c4fb570a514

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b7948f6bc6ef51bc3db0bc2245e1d0a508be4ca969ca486c203350fc3c45965
MD5 b87e537979ad2f2fdfa35202cf580ad6
BLAKE2b-256 c8b626757933e7ec4e912b0b3614e91602cf7313a91e4b66ce93e1054465d568

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp311-pypy311_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8354da3f1001d5d7c7e860e242d1bed652f3e33011f6e2ed8545a1a1a0faf877
MD5 fc6831fe62159ee2784ebdbf411faf8d
BLAKE2b-256 ad276aed7a7fb31d6f612b14f7b72d28ce662f2202fb3c597408fd246508cb00

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 f65d8f37751db6e3bb063b59a004fb9f056af72c2cc9fd1ef69704da0e150428
MD5 4241357d42d6c74081f0b650ccbb9944
BLAKE2b-256 cf43cbe3e7ad8f88b4e3eaf3a20c327007c220a3f22c635b9b1a4fe0019c4851

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 41f5b6f90b470575ec93ddef947f8bcb5ccbd3e49e04b5bec5d9257aadfa5deb
MD5 e2ba010a29933257c7cb1eed7c432b57
BLAKE2b-256 3cc4f56b13135ad5f8dc457f3305d9147ec49f9d0ee02cd7967983d48735b9a0

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: twmap-0.6.6-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.1

File hashes

Hashes for twmap-0.6.6-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 93803dd262e0324b577134c7a9c85b450e65e166b8492c5bc493a1fb5740f8c6
MD5 b7979b09c4bf62b92efdb76a380cf75c
BLAKE2b-256 040225db94a74d69faf94d431682c62e2dfb8858a9941eddf2850e9fe0c3f684

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp313-cp313t-win_amd64.whl.

File metadata

  • Download URL: twmap-0.6.6-cp313-cp313t-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.13t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.1

File hashes

Hashes for twmap-0.6.6-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 9c9e86e1ecf9e5fcad154ab3316c8081c3bd7dad528ce75bc52655fe581a2a33
MD5 cb08df994f44ead9116193ed45c36aaa
BLAKE2b-256 3811915ddef8e4203806ca1c6b2381264de1cd3cfc2615611dca9021058b2a2a

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: twmap-0.6.6-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.1

File hashes

Hashes for twmap-0.6.6-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3d62498889f0a97f192452cfff8c183ec97066ff8cb9657f10b5437418ef4cc8
MD5 cd8f001e29e90066d6e05409e8ea661f
BLAKE2b-256 842185c88e20e3697d38fd4bfc102fe8334121bd06d7399ca650e74e1e323bf3

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 71126094bffaf2612c677b5187eeceb14437be89f71d598ea9d2118d15273793
MD5 07c29c5a68d5469dc64e9ffa5b59e874
BLAKE2b-256 130ac976a199e52c96b5a7e9f6baa004a4aa66c6437817a2cfd9a3e24480508c

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1f2ab7c8526858c660a957e0e026243716d4e0eadb85efd9e532bc3779db5644
MD5 b05ac15a86a756ccd27b756630ba155e
BLAKE2b-256 bdfa0e9a4564ccb9449144150048f3c62b0ca1a7f180d7df0c35823eb1a6c431

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf996ed78773f08a5d4a707b16de73cdb0dc914d05d745c4a49c6e80afae01e3
MD5 ba1ed2d3503aaa92ef473a54112d77d0
BLAKE2b-256 f1ebb510a797ddcb7b5a7e45b463464bd5b4011118ec2bfd5e5464b04e820ffe

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 408f146c07cb70fc58522f6042d4e710e6fbf7b892fc3259ff5afe7edd38bf09
MD5 5c1189b423b307236fedd8ed3d1b22ce
BLAKE2b-256 164033d4fd9b78326cfb8d7bb3570b3fcb7b84bb4a3aa68f589932b834b886be

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 30a22a4c2164e93a4c72f6e9805dd70f8c2c44209db2b044974404e7e5828865
MD5 84096c1348ee1e369e469e2d3f1a9afb
BLAKE2b-256 05be7f090d2900da38e54dda022066b9b2cce6a5be371b2d519364eb4b2519ab

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6441bcbc03704f6129db527b0cc1489dff6f76379811c04b9489ee46ef8df356
MD5 d059a22b391b0640350314972490a172
BLAKE2b-256 ed6b25e4e7a15a50fc172d12b68a91cbccb5149bdaaa55a3c9ee4dd387843a36

See more details on using hashes here.

File details

Details for the file twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for twmap-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 efa7b1c129621025f1617b87e1ca98f2f719f057ecab2b468b1a84f93bc0180b
MD5 460ebb05fabb2b4672bf48744b9649a5
BLAKE2b-256 4e7daedb92366d31ff284421c3654c2e11533209862258da2e9ce59d16cc4557

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