semvec/pypi-packages huggingface dataset:
dwriteshapepy 1.0.12
Python extension for Windows DirectWrite shaping, modeled after uharfbuzz
License: MIT
Requires Python: >=3.9

# Project

DWriteShapePy is a Python extension built using Cython. It provides streamlined bindings for
the DirectWrite shaping engine. The model is similar to the model provided by uHarfBuzz but some 
differences because of differences in the API models between DirectWrite and HarfBuzz. 

DWriteShapePy was initially developed to support a Python based font testing environment where similar tests are 
executed using both DirectWrite and HarfBuzz. 

### Example

```python
import sys
import dwriteshapepy as dw 
from pathlib import Path

with open(sys.argv[1], 'rb') as fontfile:
    fontdata = fontfile.read()

text = sys.argv[2]

face = dw.Face(fontdata)
font = dw.Font(face)
upm = font.upem
print(upm)

buf = dw.Buffer()
buf.add_str(text)
    
features = {"kern": True, "liga": True}
dw.shape(font, buf, features)
glyph_names = [font.glyph_to_string(g.codepoint) for g in buf.glyph_infos]
infos = [(g.codepoint, g.cluster) for g in buf.glyph_infos]
print(glyph_names)
print(infos)

advance = [(adv.x_advance, adv.y_advance, adv.x_offset, adv.y_offset) for adv in buf.glyph_positions]
print(advance)

infos = buf.glyph_infos
positions = buf.glyph_positions

for info, pos in zip(infos, positions):
    gid = info.codepoint
    cluster = info.cluster
    x_advance = pos.x_advance
    x_offset = pos.x_offset
    y_offset = pos.y_offset
    print(f"gid{gid}={cluster}@{x_advance},{x_offset}+{y_offset}")

```

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft 
trademarks or logos is subject to and must follow 
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
skillsnetwork 0.21.10
Library for working with Skills Network
License: MIT
Requires Python: <4.0,>=3.8

# Skills Network Python Library

A library for working with [Skills Network](https://skills.network) Python labs.

 - [Documentation](https://ibm-skills-network.github.io/skillsnetwork-python-library/)

### Environment Variables

(Required environment variables for testing)

- `CV_STUDIO_TOKEN`
- `CV_STUDIO_BASE_URL`
- `IBMCLOUD_API_KEY`

## Contributing
Please see [CONTRIBUTING.md](https://github.com/ibm-skills-network/skillsnetwork-python-library/blob/main/CONTRIBUTING.md)
myprojectpython 0.0.0
package for the python project 2025 class
License: MIT
Requires Python: <4.0,>=3.12

# mylibrary

package for the python project 2025 class

## Installation

```bash
$ pip install mylibrary
```

## Usage

- TODO

## Overview and explanation of the package/code

In this project, i import pybacktestchain, which is a package developped by our professor, i then use the output given from his backtest function, which is in a blockchain format, i transform it into a dataframe in order to be able to analyse the data and further develop some functions for statistical analysis. The goal of this project is to develop a dashboard that will first display some key indicators for portfolio analysis so i use the portfolio obtained from the backtest function, i then plot the performance of the portfolio and the performance of the stocks contained in the portfolio (by this i mean their return). Once this is done, i add a table to display the sharpes ratios. I further contribute by developping some functions that will import the data from yahoo finance of the stocks considered in the first drown-down list on the dashboard, and allows to analyse them and display some statistical indicators and technical analysis (moving averages with different windows, bollinger bands) individually on a graph for each stocks.

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`mylibrary` was created by Reda El Fassi. It is licensed under the terms of the MIT license.

## Credits

`mylibrary` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).