semvec/pypi-packages huggingface dataset:
flask-shopify-utils 0.2.6
A Flask extension for Shopify app development
Requires Python: >=3.9
Keywords: Extension, Flask, Flask Extension, SDK, Shopify, Shopify-SDK

# Flask-Shopify-Utils

The utils for Flask Application that build for Shopify Custom App 

---

# Installing

```shell
$pip install -U flask-shopify-utils
```

## Get the sample code to start

After install the "flask-shopify-utils", you should able to get the sample code by running the following command.
 
```shell
$lazy-dog
```

---

## Example / How to ...

Please check the `example` folder for more details.

Remember, this package is using Flask-SQLAlchemy, so you need to initialize the database first.

```python
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_shopify_utils import ShopifyUtil

app = Flask(__name__)
# Init Database
db = SQLAlchemy()
db.init_app(app)

# Initial Shopify Utils
utils = ShopifyUtil()
utils.init_app(app)

# example: register default routes
utils.enroll_default_route()

```

---

## Donate

Well, I have no idea how this work, just copy it from somewhere.

The Pallets organization develops and supports Flask and the libraries
it uses. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, [please
donate today](https://palletsprojects.com/donate)

---

## First time setup

- Download the repository to your local machine.
- Create a virtualenv.

```shell
# Linux/macOS
$ python3 -m venv env
$ . env/bin/active

# Window
$ py -3 -m venv env
$ env/Scripts/active
```

- Install `pip-tools`, `twine` and `build` in the virtualenv. 

```shell
>pip install --upgrade pip
>pip install pip-tools twine build
```

- Install the development dependencies, then install `Flask-ShopifyUtils` in editable mode.

```sheel
$ pip install -r requirements/dev.txt && pip install -e .
```

- Build the wheel
```shell
# new 
>python -m build
# For more reference https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
```

- Deploy to PyPI

```shell
# check
>twine check dist/*
# upload
>twine upload dist/* --skip-existing
```

## requirements.txt

All dependencies are managed by `pip-tools`, so you need to install it first.
And you can find them from the `requirements` folder.

```shell
# development
>pip-compile --extra=dev --output-file=requirements/dev.txt pyproject.toml

# production
>pip-compile --output-file=requirements/index.txt pyproject.toml
````

## Check the code format

```shell
>flake8
```

## Running the tests

Make sure you have install the repository locally.

```shell
# install the package
>pip install -e .
# install the pytest
>pip install pytest
# run all tests
>pytest
# run tests with output
>pytest -s
# run specific test
>pytest -vs tests/test_init.py
# run specific test case
>pytest -vs tests/test_init.py::test_init_app
```

---

# Reference
[Packing for Python](https://packaging.python.org/en/latest/tutorials/installing-packages/)

# TODO
[] Remove state from check_callback method
[] Remove state cookie form intall method
Add test for `ShopifyUtil` methods
fastmcp-apps-sdk 1.0.0
Widgets SDK for FastMCP targeting OpenAI Apps SDK (outputTemplate + widget helpers).
Requires Python: >=3.12

# fastmcp-apps-sdk

Widgets SDK for FastMCP targeting OpenAI Apps SDK. It provides a simple `@widget(...)` decorator and helpers to:

- Register a `text/html+skybridge` resource with CSP hints
- Expose a tool with `openai/outputTemplate` and widget metadata
- Return structured content + narration with `build_widget_tool_response`

Install

- pip: `pip install fastmcp-apps-sdk`
- uv: `uv add fastmcp-apps-sdk`

Usage

```
from fastmcp import FastMCP
from fastmcp_apps_sdk import widget, build_widget_tool_response, register_decorated_widgets

@widget(
    identifier="hello-widget",
    title="Hello Widget",
    template_uri="ui://widget/hello.html",
    invoking="Saying hello",
    invoked="Said hello",
    html='<div id="hello-root"></div><script type="module" src="https://example.com/hello.js"></script>',
)
def hello(name: str = "world"):
    return build_widget_tool_response(
        response_text=f"Hello {name}!",
        structured_content={"name": name},
    )

mcp = FastMCP(name="demo", instructions="Demo widgets")
register_decorated_widgets(mcp)
mcp.run(transport="http", host="0.0.0.0", port=8080)
```

Examples

- See `examples/` for Solar System and Pizza widgets.
- Run locally (with uv):
  - `uv pip install -e .` (or `pip install -e .`)
  - `uv run examples/server.py`
  - `ngrok http 8080` and use the HTTPS URL as the MCP endpoint.

Publish to PyPI

- Ensure your version in `pyproject.toml` is updated.
- Build with uv: `uv build` (creates wheel and sdist under `dist/`)
- Publish with uv: `uv publish --token <pypi-token>`
- Alternative with Twine:
  - `python -m pip install build twine`
  - `python -m build`
  - `twine upload dist/*`

Notes

- No auth, env vars, or external tools are included in this package.
- The example server intentionally runs without authentication for easy testing.
stoked 1.0.0
Simulation and visualization of Stokesian dynamics for N interacting particles
Requires Python: >=3.11

StokeD
==============
StokeD solves the Stokesian dynamics (SD) equations for N interacting particles. SD is a generalization of Brownian dynamics (BD) that includes hydrodynamic coupling interactions.


<p align="center">
  <img src="./docs/estatics.png" width="500" alt="">
  <br>
  <em>Electrically charged particles repulsed from each other confined in a harmonic potential</em>
</p>

<p align="center">
  <img src="./docs/rt_coupling.png" width="500" alt="">
  <br>
  <em>Seven particles spinning due to an applied torque; the rotation of the fluid results in translational motion of the outer particles</em>
</p>


Features
--------------
+ Hydrodynamic coupling interactions can be turned on or off
+ Flexible interface for user-defined particle interactions
+ Several interactions already available: point electrostatics and electrodynamics, screened Coulomb, van der Walls, hard-sphere collisions, gravity
+ Animation module for visualizing trajectories

Installation
--------------
StokeD can be installed with pip
```shell
pip install stoked
```

Usage
--------------

See the [examples](src/stoked/examples) folder for how to use StokeD.

Run any of the available [examples](src/stoked/examples) without explicit installation using `uv`:

| Command | Description |
|---------|-------------|
| `uvx stoked free_particle` | Free Brownian diffusion in 3D |
| `uvx stoked estatics` | Electrostatic interactions with harmonic confinement |
| `uvx stoked ellipsoid` | Ellipsoidal particle with external force and torque |
| `uvx stoked tt_coupling` | Hydrodynamic translation-translation coupling |
| `uvx stoked rt_coupling` | Hydrodynamic rotation-translation coupling |
| `uvx stoked bigaussian_potential` | Particle in double-well potential |

For full documentation, see docs folder.

License
--------------
StokeD is licensed under the terms of the MIT license.