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.6.tar.gz (86.4 MB view details)

Uploaded Source

Built Distributions

am4utils-0.1.6-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

am4utils-0.1.6-cp311-cp311-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

am4utils-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (24.8 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

am4utils-0.1.6-cp311-cp311-macosx_10_15_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.11 macOS 10.15+ x86-64

am4utils-0.1.6-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

am4utils-0.1.6-cp310-cp310-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

am4utils-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (24.8 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

am4utils-0.1.6-cp310-cp310-macosx_10_15_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

am4utils-0.1.6-cp39-cp39-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.9 Windows x86-64

am4utils-0.1.6-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl (14.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

am4utils-0.1.6-cp39-cp39-macosx_11_0_arm64.whl (24.8 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

am4utils-0.1.6-cp39-cp39-macosx_10_15_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for am4utils-0.1.6.tar.gz
Algorithm Hash digest
SHA256 0cd76d55204e454faf553c42004a7cba62cc1c5fae403d904ff139a508f3718b
MD5 2243454d882739cfde85b2e86dd4bbe1
BLAKE2b-256 15e5dba4151b8eb8dee05ed907273a71dd618d2b7b5b5f89cdae56c201cba8a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for am4utils-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50f372818171e5da66ae6a85a75b8def00ab1253484ecd4ada364a2c1e0e8a0f
MD5 bbf42290102342785a2e9500779d74a8
BLAKE2b-256 e01bf515656ee95e8a38822b4665f5433725f12f67a2bbb4ad26bb7ae71c414d

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp311-cp311-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp311-cp311-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 57ff719b52a22ec933d4fb8fa858646b4196c9c4acab277fb18a9990cd5a1a03
MD5 7e626db11e20c1f9518edc884b21a6c2
BLAKE2b-256 4ef7a9229ec53ad9bf000d835804be38bfce5661381c89449f6dfe15c05d4c8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for am4utils-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbe79a00ccabca950db619a609206c1cfb7652f6887e6424655906479f04f0c6
MD5 de5e8739fb86fded81150f96f6064eeb
BLAKE2b-256 ec6bf906b90bc0314362d980c2869c7a27b575c381b32571fa8239fe7bdb3c3b

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 fe38393ff9fa42600c89780ea62bdd748ff2179059e23a8b00d93a42fb35504f
MD5 7f37a5afd5bf484edec9f3f359aff8ea
BLAKE2b-256 50baa029a048134d9080727803f27d73e0f8e3fe7db9af2dc88188b15479cd5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for am4utils-0.1.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 743bb92465361ead575c4d66c598e10ff7a13ea321577b4e4df485d39c9b20ef
MD5 da25d4625d73406cc8746cfe6e054fa2
BLAKE2b-256 ef62c124920b5ecd68461e2ab36f9f686e2da825184a64b44bb00c00f9be20fd

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp310-cp310-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp310-cp310-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 d526d11191b8e137e4f7ddfc818476eda1705f16b63e6d5005cb162dbc5993d4
MD5 f4af56faf2e6c8ed38210bda845ef0ba
BLAKE2b-256 0e1d0e474f87973b9aaa91fa24d231725e109f3af37b480af68314f78100eace

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for am4utils-0.1.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7617e2b1dd29e79ae22d5ee6a6c2f206a2a912a384cba60ab8ebb7b3fd11ca7
MD5 d41ef830ce3e8cea00e45ad7e5e9232d
BLAKE2b-256 1da6b987028ecd9181d9b63fa472273d2ae82e98b3308e4765c6263ab3689e17

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c81ff3bbe4804fed67158deaa40c0db03cadbf1cac87286140e63a7b4729935a
MD5 b69d10e237e16ac0b2cdbf5e70dd0e4a
BLAKE2b-256 5a0d9d3581d3ebdc8bcb2681d33493378eedbeb1b7da095c9c0dbb16fe1e0189

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for am4utils-0.1.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea6594f8347adf44c00acdbde660225106d5f1ae19b96c5274cb6eb6ea1a56b5
MD5 0a4a66cf74edaece991dbdd7d58b4744
BLAKE2b-256 33fdabb251a582a0b26059191d42b2c32bbfeee1241da0cc7592300978f16f64

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 75544e4682393393b6d341695252f3b8a06ba659191f99224034fbacecd6d419
MD5 d9d518324c2e7c6988b6aa04b671c23e
BLAKE2b-256 6e1d6af08aa7d3c8f803414c6f519b80a0b6d9dff9b3f70e333c712010086e78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for am4utils-0.1.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1f9e9a2308bdc4eea59fd8e0a16a79aa9e0e2834a56e35467266e1bfcf2e347
MD5 6a843479c148146c3e683791bd00370c
BLAKE2b-256 3e6fd154467963605bff79f6c9d225c0edef54c79dd91b6a989dfb5ca07774f9

See more details on using hashes here.

File details

Details for the file am4utils-0.1.6-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for am4utils-0.1.6-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 07d25fd70943617029e2bf7c504105b964fa5ac770c04cf0852d6eb1cfd32f01
MD5 98551517618907400af7e3c9d6798b71
BLAKE2b-256 85d7f52b7b06c567d5d7852c80db771d2235c82c613cc2ab7b5c47241c5310cf

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