Skip to main content

Kumir preprocessing, package management and debugging tool

Project description

Kumir-Compose

A preprocessing and package management tool for modern Kumir development.

Prerequisites

Install a Kumir SDK first (niisi.ru).

This project was tested only on Windows. It should work on other systems too, but it's not guaranteed.

Usage

Create a Kumir-Compose project:

$ kumir-compose init
Enter project name: test project
Select library directory [lib]: 
Do you want Kumir-Compose to automatically find Kumir SDK [Y/n]? Y
Config created.

Download a dependency:

$ kumir-compose depend k-collections

Run the project:

$ kumir-compose run main.kum

Configuration file:

# Project config
project:
  
  # Name of the project
  name: example project
  
  # Dependencies list
  # Default: empty list
  depends:
    k-collections: latest
    
  # Directory to store dependencies
  library_location: lib  # default
  
  # Where to search for files for inclusion
  lookup:
    - lib  # default
    
  # How to name assembled files
  filename_format: %s.kum  # default
  
  # List files for distribution.
  # They will be downloaded upon requesting your project
  # as a dependency for other project.
  # Default: empty list
  distribute:
    - my_lib.kum


# Kumir-Compose settings
settings:
  
  # SDK binary paths
  sdk:
    compiler: 'C:\\\\Program Files (x86)\\\\Kumir-2.1.0-rc11\\\\bin\\\\kumir2-bc.exe'
    release: 'C:\\\\Program Files (x86)\\\\Kumir-2.1.0-rc11\\\\bin\\\\kumir2-xrun.exe'
    debug: 'C:\\\\Program Files (x86)\\\\Kumir-2.1.0-rc11\\\\bin\\\\kumir2-xrun.exe'

Preprocessor

Preprocessor defines following directives:

  • || include "path/to/file" = || включить "путь/к/файлу"
    Every file is included only once.
  • || ifdef MACRO = || еслизад МАКРОС
  • || ifndef MACRO = || еслинезад МАКРОС
  • || define MACRO ... = || задать МАКРОС ...
  • || undef MACRO = || забыть МАКРОС

Dependencies

Dependencies are searched in GitHub repositories.

If name has no slash in it, kumir-compose organisation will be searched.

Examples:

$ kumir-compose depend k-collections
$ kumir-compose depend my-profile/my-library
$ kumir-compose undepend my-profile/my-library

Licensing

This work is licensed under GNU GPL v3.0

Author

@Tapeline

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

kumir_compose-0.1.1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

kumir_compose-0.1.1-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file kumir_compose-0.1.1.tar.gz.

File metadata

  • Download URL: kumir_compose-0.1.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/10

File hashes

Hashes for kumir_compose-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f5ce2df6c2b39dce23c4913903a6b909f43864b0c5d10631dd44c7715186f981
MD5 2c70b5ca29b245b5bfd8b7ea996106e2
BLAKE2b-256 816e4157c0ca614458d57bc32562511d43624782835d34f07dee0ce14ab2c992

See more details on using hashes here.

File details

Details for the file kumir_compose-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kumir_compose-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Windows/10

File hashes

Hashes for kumir_compose-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc6405b60dd11ff61c9d7c7a0c9bce17a9e92a5db26d2bab0b99c02c6e719a55
MD5 beefada2fe8e541d2510e04f7b170f61
BLAKE2b-256 1df89bc37e845008909e0981df5c801f5b5a907c53ca3f63573c8ad6dbc848ce

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