semvec/pypi-packages huggingface dataset:
pygim-common 0.2.0
Common features for pygim
Requires Python: >=3.7, <4

===============================
Python Gimmicks (pygim)
===============================

| |docs| |downloads| |wheel| |pyversions|

.. |docs| image:: https://readthedocs.org/projects/pygim/badge/
    :target: https://readthedocs.org/projects/pygim
    :alt: Documentation Status

.. |downloads| image:: http://img.shields.io/pypi/dm/pygim.png
    :alt: PyPI Package monthly downloads
    :target: https://pypi.python.org/pypi/pygim

.. |wheel| image:: https://img.shields.io/pypi/format/pygim.svg
    :alt: PyPI Wheel
    :target: https://pypi.python.org/pypi/pygim

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/pygim.svg


Python Gimmicks is a library that contains magical but useful tools
that can be used to improve productivity of any Python project. The
goal is to use whatever Pythonic means to provide as light-weight
and high-performance solutions as possible.
linearSubproblemSltns 1.0.3
This is a new tool for multi-joint robotic arm calculations developed at RPI.
Requires Python: >=3.7

# Summary:
- This is a research project led by Alexander Elias and Dr. John Wen at RPI.
- Summation of research: https://arxiv.org/pdf/2211.05737.pdf
- Included here is the Python version of the MATLAB-based canonical subproblems for inverse kinematics on robots.
- Additional MATLAB, C++, Rust, and Python files are located at https://github.com/rpiRobotics/linear-subproblem-solutions/.
- See the project on PyPi: https://pypi.org/project/linearsubproblemsltns/
---
# Python Branch Guide:
## Dependencies:
- NumPy: https://numpy.org/install/
- SciPy: https://scipy.org/install/
- Python (version compatible w/ installed NumPy)
---
## To Use Example Code:
- Clone the above repo
- To see timing information and a simple demo, run each sp#.py file
- Otherwise, just include the pip module in your applications as needed using pip install linearSubproblemSltns
---
## Advice:
- NumPy vs MATLAB can be confusing at first, see [this article](https://numpy.org/doc/stable/user/numpy-for-matlab-users.html) for some clarity.
- See the below note on precision/formatting.
- NumPy makes it extremely easy to export/import entire matrices as csv/excel files.  Make use of this if you can.
---
## Precision and Formatting
- If comparing values in Python to MATLAB output, be careful with how inputs are entered.
- Also, note that values printed in the test files are not the exact values used in the calculations.
- Vectors in NumPy are of form [n n n] (0 row, 3 col).  You cannot have a vector of 3 col, 0 row.
  - Note, the MATLAB version of this code uses vectors of 3 col, 0 row, which is why some calculations look slightly different.
### In Python:
   p1 = [0.85421456 0.9145417  0.28164908]\
   p2 = [0.71384302 0.84785577 0.40390217]\
   k1 = [0.53432959 0.73260445 0.42164275]\
   k2 = [0.89871158 0.33336884 0.2849258 ]
### In MATLAB:
   p1 = [0.85421456; 0.9145417;  0.28164908]\
   p2 = [0.71384302; 0.84785577; 0.40390217]\
   k1 = [0.53432959; 0.73260445; 0.42164275]\
   k2 = [0.89871158; 0.33336884; 0.2849258 ]

---
## Timing
| Subproblem    | Time With Inputs | Time Without Inputs  |
| ------------- | ---------------  | ------------------   |
| Sp1           | 78716.896 ns     | 73754.058 ns         |
| Sp2           | 325238.43 ns     | 318135.293 ns        |
| Sp2E          | 409206.773 ns    | 400298.479 ns        |
| Sp3           | 127781.537 ns    | 122444.399 ns        |
| Sp4           | 104747.862 ns    | 99615.851 ns         |
| Sp5           | 1353110.805 ns   | 1341531.159 ns       |
| Sp6           | 614233.523 ns    | 596708.225 ns        |
PaPDF 1.1.8
A python package to create PDF files.
Requires Python: >=3.5

# PaPDF
Python library to create PDF

## Features:
 - Basic text writing with TrueType font embedding (including propper font subsetting)
 - Image insertion (JPEG images and PNG with transparency images support)
 - EAN13 barcode insertion

## Installation:
Use `pip3`for the installation of `PaPDF`:
```bash
pip3 install PaPDF
```
## Simple usage example:

The following snippet will create a pdf (`test.pdf`) with two pages and two
texts.

```python
from PaPDF import PaPDF
with PaPDF("test.pdf") as pdf:
    pdf.addText(40, 290, "Hello world")
    pdf.addPage()
    pdf.addText(40, 10, 'Hello world')
```


### TrueType font embedding:
More advanced example with the usage of a (subsetted) TrueType font. Basically
the same example as above but with a custom font, loaded from a font file.
```python
from PaPDF import PaPDF
with PaPDF("test.pdf") as pdf:
    pdf.addTrueTypeFont("<FontUserName>", "/path/to/font.ttf")
    pdf.currentFontName = "<FontUserName>"
    pdf.addText(40, 290, "Hello world")
    pdf.addPage()
    pdf.addText(40, 10, 'Hello world')
```

### Adding EAN13 Barcode:
Adding a barcode is pretty straight forward. Warning: make sure the last digit checksum is correctly computed, when calling the `addEAN13()` function.
```python
from PaPDF import PaPDF
with PaPDF("barcode.pdf") as pdf:
    pdf.addText(20, 250, "Simple EAN13 barcode example:")
    pdf.addEAN13(20, 225, "4012345123456")
```
![Generated barcode example](https://raw.githubusercontent.com/gcoppex/PaPDF/master/examples/barcode.png)