semvec/pypi-packages huggingface dataset:
sfera 1.0.0
SFERA Institute's Python codebase.
Requires Python: >=3.6

# SFERA

This is a repository of all the open-source Python code from SFERA Institute. It's a pretty eclectic collection — from
simple utilities, like alternative datetime and dictionary objects, to platforms that handle databases and webservers.

It's also a work in progress: we're adding (and changing) code, tests and documentation all the time, so stay tuned!

## Installation

```sh
$ pip install sfera
```

## Usage

```python
>>> import sfera
>>> sfera.version
'0.1.0'
```

## Development

### Project Setup

We use a clean image of the latest Ubuntu distribution (currently 24.04). The easiest way to get it is to install
[VirtualBox](https://www.virtualbox.org/) and [Vagrant](https://www.vagrantup.com/), and run the following command
in the project's root directory:

```sh
$ vagrant up
...
$ vagrant ssh
...
vagrant@ubuntu-focal64$ 
```

This creates a virtual machine, whose `/app` directory is mapped to the project's root directory, and connects to
it via SSH. This way, you can keep working on your favorite operating system and using your favorite text editor,
and only use the virtual machine when you need to run tests or deploy the code.

Now, run the installation script, which will download [pyenv](https://github.com/pyenv/pyenv), install the latest
Python version and configure the working environment: 

```sh
vagrant@ubuntu-focal64$ ./install.sh
...
vagrant@ubuntu-focal64$ . ~/.bashrc # reload your profile
/app$
```

Last but not least — update your `.pypirc`, and set the password to a token that will let you publish the package
to PyPI; and complete `gh auth` to log in with GitHub's CLI.

### Project Management

Now, you can use the `manage.py` script to list, add and remove dependencies; run the tests and coverage; preview
the documentation; submit a pull request and publish a version to GitHub and PyPI:

```sh
/app$ ./manage.py dep add flask
...
/app$ ./manage.py dep ls
flask
/app$ ./manage.py dep rm flask
...
/app$ ./manage.py dep ls
# Nothing!

/app$ ./manage.py test
...
/app$ ./manage.py test --coverage
... # See on localhost:8000

/app$ ./manage.py docs
... # See on localhost:8000

/app$ git checkout -b fix
/app$ # Edit stuff.
/app$ git add -a
/app$ git commit -m 'edited stuff'
/app$ ./manage.py submit

# Review, amend, and merge the pull request to the main branch.

/app$ git checkout main
/app$ git pull origin main
/app$ ./manage.py publish
publish version 0.1.0? [y/N] y
... # Creates a tag and uploads source and wheel distributions to PyPI.
```
seissolxmdf 0.0.3
A python reader for SeisSol xdmf output
Requires Python: >=3.6

seissolxdmf
===============
A python reader for SeisSol xdmf output (posix or hdf5) and hdf5 meshes.
Below is an simple example, illustrating the use of the module:
```python
import seissolxdmf as sx
fn = 'test-fault.xdmf'
# Number of cells
nElements = sx.ReadNElements(fn)
# Read time step
dt = sx.ReadTimeStep(fn)
# Read number of time steps
ndt = sx.ReadNElements(fn)
# load geometry array as a numpy array of shape ((nodes, 3))
geom = sx.ReadGeometry(fn)
# load connectivity array as a numpy array of shape ((nElements, 3 or 4))
# The connectivity array gives for each cell a list of vertex ids.
connect = sx.ReadConnect(fn)
# load SRs as a numpy array of shape ((ndt, nElements))
SRs = sx.ReadData(fn, 'SRs')
# load the 8th time ste of the SRs array as a numpy array of shape (nElements)
SRs = sx.ReadData(fn, 'SRs', 8)
```
trundlerpy 0.1.2
Trundler Python Package

# trundlerpy

[![Documentation Status](https://readthedocs.org/projects/trundlerpy/badge/?version=latest)](https://trundlerpy.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.com/datawookie/trundlerpy.svg?branch=master)](https://travis-ci.com/github/datawookie/trundlerpy)
[![codecov](https://codecov.io/gh/datawookie/trundlerpybranch/master/graph/badge.svg)](https://codecov.io/gh/datawookie/trundlerpy)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/8c15645191c04d50b4f98efee6cee435)](https://www.codacy.com/manual/datawookie/trundlerpy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=datawookie/trundlerpy&amp;utm_campaign=Badge_Grade)

This is a Python package for the Trundler API.

## Installation

### Install from PyPI

Install from PyPI.

```bash
pip3 install trundlerpy
```

### Install from GitHub

Install from GitHub.

```bash
pip3 install git+https://github.com/datawookie/trundlerpy
```

## Testing

To run the test suite:

1. Set the `TRUNDLER_KEY` environment variable.
2. Launch the tests with

```bash
pytest
```

## Documentation

To build the documentation:

```bash
make -C docs/ html
```

## Set the API Key

To access the full API you’ll need to first specify an API key.
To obtain a key, please [get in touch](https://www.trundler.dev/).

Storing your keys received from APIs and other sensitive information in a
secure file or as an environment variable is considered best practice to avoid
any potential malicious activity.

```python
import os

key = os.getenv('TRUNDLER_KEY')
```

## Usage

```python
from trundlerpy import Trundler

tr = Trundler(key = key)
```

### Retailers

Use `retailer()` to get a list of retailers.

```python
tr.retailer()
```

You can access the details for a specific retailer.

```python
tr.retailer(45)
```

### Products

Get a list of products for a specific retailer.

```python
tr.retailer_products(5)
```

Products can be filtered by name and brand or SKU.

```python
tr.retailer_products(5, product = "coffee", brand = "nespresso")
```

```python
tr.retailer_products(5, sku="7630047615160")
```

A similar search can be applied across all retailers.

```python
tr.products(product = "coffee")
```

```python
tr.products(sku="7630047615160")
```

Get information on a specific product, filtering it by ID.

```python
tr.product(530290)
```

Get price history data for a specific product.

```python
tr.product_prices(530290)
```

## Documentation

[TrundlerPy Documentation](https://trundlerpy.readthedocs.io/)