Skip to main content

Tools and utilities for the game Airline Manager 4.

Project description

am4utils

Tools and utilities for Airline Manager 4 bot.

Supports Python 3.9 - 3.11 on the following platforms:

  • manylinux2_24 x86_64 (ubuntu 16.10+, debian 9+, fedora 25+)
  • windows amd64
  • macos x86_64 / amd64

Database tests

download the DuckDB command line binaries

CREATE TABLE airports (
  id         USMALLINT PRIMARY KEY NOT NULL,
  name       VARCHAR NOT NULL,
  fullname   VARCHAR NOT NULL,
  country    VARCHAR NOT NULL,
  continent  VARCHAR NOT NULL,
  iata       VARCHAR UNIQUE NOT NULL,
  icao       VARCHAR UNIQUE NOT NULL,
  lat        DOUBLE NOT NULL,
  lng        DOUBLE NOT NULL,
  rwy        USMALLINT NOT NULL,
  market     UTINYINT NOT NULL,
  hub_cost   UINTEGER NOT NULL,
  rwy_codes  VARCHAR NOT NULL
);
INSERT INTO airports SELECT * FROM read_parquet('./data/airports.parquet');
CREATE INDEX airports_idx ON airports(name, fullname, country, continent, lat, lng, rwy, market);

SELECT *, jaro_winkler_similarity(name, 'hostomel') AS score FROM airports ORDER BY score DESC LIMIT 5;

CREATE TABLE aircrafts (
  id           USMALLINT NOT NULL,
  shortname    VARCHAR NOT NULL,
  manufacturer VARCHAR NOT NULL,
  name         VARCHAR NOT NULL,
  type         UTINYINT NOT NULL,
  priority     UTINYINT NOT NULL,
  eid          USMALLINT NOT NULL,
  ename        VARCHAR NOT NULL,
  speed        FLOAT NOT NULL,
  fuel         FLOAT NOT NULL,
  co2          FLOAT NOT NULL,
  cost         UINTEGER NOT NULL,
  capacity     UINTEGER NOT NULL,
  rwy          USMALLINT NOT NULL,
  check_cost   UINTEGER NOT NULL,
  range        USMALLINT NOT NULL,
  ceil         USMALLINT NOT NULL,
  maint        USMALLINT NOT NULL,
  pilots       UTINYINT NOT NULL,
  crew         UTINYINT NOT NULL,
  engineers    UTINYINT NOT NULL,
  technicians  UTINYINT NOT NULL,
  img          VARCHAR NOT NULL,
  wingspan     UTINYINT NOT NULL,
  length       UTINYINT NOT NULL,
);
INSERT INTO aircrafts SELECT * FROM read_parquet('./data/aircrafts.parquet');
CREATE INDEX aircrafts_idx ON aircrafts(id, shortname, manufacturer, name, type, priority, eid, ename, speed, fuel, co2, cost, capacity, rwy, check_cost, range, maint, img);


CREATE TABLE routes (
  oid USMALLINT NOT NULL,
  did USMALLINT NOT NULL,
  yd  USMALLINT NOT NULL,
  jd  USMALLINT NOT NULL,
  fd  USMALLINT NOT NULL,
  d   FLOAT     NOT NULL,
);
INSERT INTO routes SELECT * FROM read_parquet('./data/routes.parquet');
CREATE INDEX routes_idx ON routes(oid, did, yd, jd, fd, d);

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

am4utils-0.1.3.tar.gz (54.5 MB view details)

Uploaded Source

Built Distributions

am4utils-0.1.3-cp311-cp311-win_amd64.whl (63.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

am4utils-0.1.3-cp311-cp311-manylinux_2_24_x86_64.whl (68.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.24+ x86-64

am4utils-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (79.2 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

am4utils-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl (79.3 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

am4utils-0.1.3-cp310-cp310-win_amd64.whl (63.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

am4utils-0.1.3-cp310-cp310-manylinux_2_24_x86_64.whl (68.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

am4utils-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (79.2 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

am4utils-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl (79.3 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

am4utils-0.1.3-cp39-cp39-win_amd64.whl (63.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

am4utils-0.1.3-cp39-cp39-manylinux_2_24_x86_64.whl (68.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

am4utils-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (79.2 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

am4utils-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl (79.3 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file am4utils-0.1.3.tar.gz.

File metadata

  • Download URL: am4utils-0.1.3.tar.gz
  • Upload date:
  • Size: 54.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for am4utils-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fbe6afd53baeb12540376d82906256c94b4e8d35d8ab81c0e6ad369ccf3de7f2
MD5 da5b3d8f5a096880c18eeedeff841500
BLAKE2b-256 43300c64f3f98ca13849447774a38ed2a4c937db46f5476e81b876822c98ab61

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: am4utils-0.1.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 63.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for am4utils-0.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5231ac8969eea54fcb21a518250098d36eb67cd3d9a643f9119aacc55448ac06
MD5 9c6226587b3bfb9e3b55beda88833562
BLAKE2b-256 fb24ca0e79da79a9f52bc4abe59f933878b4a7dfa989ae87facc6f5ea404dfc5

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp311-cp311-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 4f3c92533195e7fed0dfdf9e99328256bb3dbac56ee76f0864d2ad31c24e9682
MD5 b927288dbd65c08b3422b027fe32a4f5
BLAKE2b-256 2f40121738cbc25cb83423445f54c47efe37e6fef0611739ac919cc526c7d51e

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed908bf42a63e532bfd24ae958d554dded3b39090d964ce7d3d86ce731ffb880
MD5 1e83e6ad12c54573e31f011f11b3ae44
BLAKE2b-256 ff00abc1a0a72b8a7fa2a4c81f20db26879c2ddda6efeede82d3f1475b4aa7ba

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b33814392f3a9710ab1e3edac59148cfdf3c43814c9e432982a9f72e60f888d6
MD5 95d31ef7c2d6357ae275292569c87f42
BLAKE2b-256 38190841f096296da4e89a02a12f24a2668f15e81159b05c15cede10f661990e

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: am4utils-0.1.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 63.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for am4utils-0.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef9239f2787624f3e9c5f233bee44cdffd0e0f1bd202cbcadca0724552e56c35
MD5 0ef72ab5bb51b978c4791508a7e01d3c
BLAKE2b-256 97c7aff72c7ac8e083cd3fdd37dd94bd394f8acd91de8c41db025245d39140c8

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 9d3344abcbea89fd5d332668a78ad20ff0aac8f8ffd5eaa306c3fae0ccf555d1
MD5 f4d9957bf73fdf376d46956630184ee9
BLAKE2b-256 972e48e22d418f9f0c5ea93c8322abed153f14b7a1fcb3631f5e8889199c5c84

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fea64bb823e3ddf88e1fd7169675ce1ed6708a9f38febf0ee683c7d00c58b914
MD5 7f517fbbc64f1b0eacb76168f37ed940
BLAKE2b-256 8ade4a732a86704074b492a49544053aed8579233abe0d2b8bef91b5fca7c61e

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6bb4bf1803d0b4b49bfceb97a083e5e38eedbff4a8ac5c94c63881a79acbfec2
MD5 ac339ef94122b55f7cc770150cc3277f
BLAKE2b-256 1a02ffbe6b6a2ae6c70339badb5a18d89d6e2e5eeeb0af025f4fc495210a53df

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: am4utils-0.1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 63.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for am4utils-0.1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 798993ddec921e7620e951711ad80aed0a19f7dd0f1f693ada4094f19f08f4e1
MD5 57d2278085c5fb1d62e0b98e5670c314
BLAKE2b-256 135cbe1b04a079b5851b5029a89bd7fd7698ae1f72c327ed1d4e3b0344c41b80

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 151cf0dd3128336b1e8793e5e85a14128a8039a61a52e63d2094ff5cbecbad08
MD5 58073255b51f9fda048f2611855b2639
BLAKE2b-256 a84740cb1a4229cbc17f0bddf930b0a2185582907e1a9d0f1dec12affe90ca63

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91863e61cc30cae4cbbf539f1d57cf734d77e9b1fef34d2abd330dff4fcddfa9
MD5 622242cce0f570ea011f0ca800061708
BLAKE2b-256 4a73d93d580f4fd845986d84cdfa4bc77f0c4f21f620f8c621a64317be770844

See more details on using hashes here.

File details

Details for the file am4utils-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 017ddcc2395dbd8a4eca6e3dc07e1aa0ce17631fd66b1d5c1d8b60812365d17c
MD5 ba547427e76e57f5f3ab3b86ed291aeb
BLAKE2b-256 e028b5a392b0789e543181294e172fd6795ba6076ee8e1bcddbf283b01246a68

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page