Skip to main content

Python package for generation of RPI configuration/build

Project description

Generate RPI project configuration/build setup

โ˜ฏ๏ธ armpicom is toolset for generation of RPI project configuration/build setup.

Developed in ๐Ÿ python code.

codecov circleci

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

armpicom python checker armpicom package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

Development environment

armpicom python2 build armpicom python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

Python ๐Ÿ“ฆ is located at pypi.org.

You can install by using pip

# python2
pip2 install armpicom
# python3
pip3 install armpicom
Install using build

Navigate to release page download and extract release archive ๐Ÿ“ฆ.

To install armpicom ๐Ÿ“ฆ type the following

tar xvzf armpicom-x.y.z.tar.gz
cd armpicom-x.y.z/
# python2
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py 
python2 -m pip install --upgrade setuptools
python2 -m pip install --upgrade pip
python2 -m pip install --upgrade build
pip2 install -r requirements.txt
python2 -m build --no-isolation --wheel
pip2 install ./dist/armpicom-*-py2-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python2.7/dist-packages/usr/local/bin/armpicom_run.py
ln -s /usr/local/lib/python2.7/dist-packages/usr/local/bin/armpicom_run.py /usr/local/bin/armpicom_run.py
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/armpicom-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.9/dist-packages/usr/local/bin/armpicom_run.py
ln -s /usr/local/lib/python3.9/dist-packages/usr/local/bin/armpicom_run.py /usr/local/bin/armpicom_run.py
Install using py setup

Navigate to release page download and extract release archive ๐Ÿ“ฆ.

To install armpicom ๐Ÿ“ฆ locate and run setup.py with arguments

tar xvzf armpicom-x.y.z.tar.gz
cd armpicom-x.y.z
# python2
pip2 install -r requirements.txt
python2 setup.py install_lib
python2 setup.py install_egg_info
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
Install using docker

You can use Dockerfile to create image/container ๐Ÿšข.

armpicom docker checker

Dependencies

armpicom requires next modules and libraries

Generation flow of pyp setup

Base flow of generation process

Setup generation flow

Tool structure

armpicom is based on OOP.

๐Ÿงฐ Tool structure

armpicom/
โ”œโ”€โ”€ conf/
โ”‚ย ย  โ”œโ”€โ”€ armpicom.cfg
โ”‚ย ย  โ”œโ”€โ”€ armpicom.logo
โ”‚ย ย  โ”œโ”€โ”€ armpicom_util.cfg
โ”‚ย ย  โ”œโ”€โ”€ project.yaml
โ”‚ย ย  โ””โ”€โ”€ template/
โ”‚ย ย      โ”œโ”€โ”€ build/
โ”‚ย ย      โ”‚ย ย  โ””โ”€โ”€ armpicom.md
โ”‚ย ย      โ”œโ”€โ”€ CMakeLists.template
โ”‚ย ย      โ”œโ”€โ”€ pico_sdk_import.template
โ”‚ย ย      โ”œโ”€โ”€ pro_auto_set_url.template
โ”‚ย ย      โ””โ”€โ”€ src/
โ”‚ย ย          โ”œโ”€โ”€ CMakeLists.template
โ”‚ย ย          โ””โ”€โ”€ main.template
โ”œโ”€โ”€ __init__.py
โ”œโ”€โ”€ log/
โ”‚ย ย  โ””โ”€โ”€ armpicom.log
โ”œโ”€โ”€ pro/
โ”‚ย ย  โ”œโ”€โ”€ config/
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ __init__.py
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ pro_name.py
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ template_dir.py
โ”‚ย ย  โ”œโ”€โ”€ __init__.py
โ”‚ย ย  โ”œโ”€โ”€ read_template.py
โ”‚ย ย  โ””โ”€โ”€ write_template.py
โ””โ”€โ”€ run/
    โ””โ”€โ”€ armpicom_run.py

8 directories, 19 files

Docs

Documentation Status

๐Ÿ“— More documentation and info at

Contributing

๐ŸŒŽ ๐ŸŒ ๐ŸŒ Contributing to armpicom

Copyright and licence

License: GPL v3 License

Copyright (C) 2021 by vroncevic.github.io/armpicom

armpicom is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 2.x/3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

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

armpicom-1.5.3-py3-none-any.whl (36.0 kB view hashes)

Uploaded py3

armpicom-1.5.3-py2-none-any.whl (36.0 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page