semvec/pypi-packages huggingface dataset:
ampgo 1.0.1
Adaptive Memory Programming for Global Optimization
License: MIT

# ampgo
Global optimization via adaptive memory programming with a scipy.optimize like API.

## Installation
```bash
pip install ampgo
```

## Example: Minimizing the six-hump camelback function in ampgo
```python
import ampgo

def obj(x):
    """Six-hump camelback function"""
    x1 = x[0]
    x2 = x[1]
    f = (4 - 2.1*(x1*x1) + (x1*x1*x1*x1)/3.0)*(x1*x1) + x1*x2 + (-4 + 4*(x2*x2))*(x2*x2)
    return f

bounds = [(-5, 5), (-5, 5)]
res = ampgo.ampgo(obj, bounds)
print(res.x)
print(res.fun)
```
## Documentation

For the full API reference check out the [online documentation](https://ampgo.readthedocs.io/en/latest/index.html).

## History
Coded by Andrea Gavana, andrea.gavana@gmail.com. Original hosted at https://code.google.com/p/ampgo/.  Made available under the MIT licence. Usage and installation modified by Daniel Schmitz.

Differences compared to original version:
* Support all of SciPy's local minimizers
* Return a OptimizeResult class like SciPy's global optimizers
* Require bounds instead of starting point
* Jacobian and Hessian support
* Support all of NLopt's local minimizers (requires [simplenlopt](https://simplenlopt.readthedocs.io/en/latest/index.html))
* Drop support for OpenOpt solvers as OpenOpt has been stale for several years
diddiparser 1.3
Parser for DiddiScript files.
License: MIT
Requires Python: >=3.6, <3.10
Keywords: diddi diddiscript script files parse python

# DiddiParser - version 1.3

Parse DiddiScript files and run their simple syntax.

## What's DiddiScript?

Refer to [GRAMMAR.md](http://github.com/diddileija/diddiparser/blob/main/GRAMMAR.md) to learn about the DiddiScript
environment.

## DiddiParser installation

DiddiParser is a pure Python package, installable from [PyPI](http://pypi.org/project/diddiparser) with Pip:

```
pip install diddiparser
```

## Usage of DiddiParser

After installing, import the features like this examples:

### Using DiddiParser on Python scripts

```python
from diddiparser.parser import (DiddiScriptFile,
                                DiddiScriptSetup,
                                stringToScript,
                                demo)
from diddiparser import __version__, __author__
```

### Module command-line options

We created `diddiparser.main` for doing this. Use it as follows:

```
python -m diddiparser [args]
python -m diddiparser.main [args]
```

### Specific console script

You don't even need to call the `diddiparser.main` module. Just use
the linked console script:

```
diddiparser [args]
```

## More help is here!

Go to [SECURITY.md](http://github.com/diddileija/diddiparser/blob/main/SECURITY.md) to view the supported versions and security advisories. Read [NEWS.md](http://github.com/diddileija/diddiparser/blob/main/NEWS.md) to view all the published versions. Or go to the related [wiki](http://github.com/diddileija/diddiparser/wiki/Home) to read a larger explanation of the package contents.

## Want to help?

Read the [contribution document](http://github.com/diddileija/diddiparser/blob/main/CONTRIBUTING.md) to learn how to contribute to DiddiParser. 

Also, you can view the 
[standing GitHub project about DiddiParser](http://github.com/users/diddileija/projects/2) to watch all the issues, PRs and discussions organized on the columns `To Do`, `In progress` and `Done`.
fastapi-backstage-sesh 0.0.2
FastAPI Middleware with simple Session implementation, plug n' playable
License: MIT
Requires Python: >=3.6.2,<4.0.0
Keywords: starlette,fastapi,sessions,cookies,samesite,asynchronous

# FastAPI Backstage Sesh

[![Build Status](https://app.travis-ci.com/aekasitt/fastapi-backstage-sesh.svg?branch=master)](https://travis-ci.com/aekasitt/fastapi-backstage-sesh)
[![Package Vesion](https://img.shields.io/pypi/v/fastapi-backstage-sesh)](https://pypi.org/project/fastapi-backstage-sesh)
[![Format](https://img.shields.io/pypi/format/fastapi-backstage-sesh)](https://pypi.org/project/fastapi-backstage-sesh)
[![Python Version](https://img.shields.io/pypi/pyversions/fastapi-backstage-sesh)](https://pypi.org/project/fastapi-backstage-sesh)
[![License](https://img.shields.io/pypi/l/fastapi-backstage-sesh)](https://pypi.org/project/fastapi-backstage-sesh)

## Pluggable session support for FastAPI framework

This is an extension built on top of the strong foundation of `starsessions` by Alex Oleshkevich located here on [GitHub: alex-oleshkevich/starsessions](https://github.com/alex-oleshkevich/starsessions)
You can find the work on his Repo to be just as well compatible with your FastAPI App or other Starlette frameworks with ease. This repository will be a work extending on this strong foundation.

## Roadmap

I want to do two things with this project located here on this repository;

1. Add an ease-of-use option for FastAPI's Background Task to share the same Session with User for long computational task.
2. Add Redis Support as a `RedisBackend`

## Installation

Install `fastapi-backstage-sesh` using PIP or poetry:

```bash
pip install fastapi-backstage-sesh
# or
poetry add fastapi-backstage-sesh
```

## Quick start

See example application in `examples/` directory of this repository.

### Run Examples

To run the provided examples, first you must install extra dependencies [uvicorn](https://github.com/encode/uvicorn)
Run the following command to do so

```bash
pip install -U poetry
# then
poetry install --extras examples
```

After that you can start the example Apps using `Uvicorn`, a lightning-fast ASGI server implementation, with the following commands.

```bash
uvicorn examples.cookie:app
# or
uvicorn examples.memory:app
```

These examples show you how to set up the basic configuration of the Middleware using Pydantic's `BaseModel` syntax and then adding to your FastAPI app using
`app.add_middleware(BackstageSeshMiddleware)` snippet.

## Contributions

To contribute to the project, fork the repository and clone to your local device and install preferred testing dependency [pytest](https://github.com/pytest-dev/pytest)
Alternatively, run the following command on your terminal to do so:

```bash
poetry install
```

Testing can be done by the following command post-installation:

```bash
pytest tests/*.py
```

## License

This project is licensed under the terms of the MIT license.
loginssh 0.1
A tool to manage SSH connections and their passwords
License: MIT
Requires Python: >3.8.0
Keywords: ssh ssh-manager

# logins.sh (LoginSSH)

Works with tmux and fzf. You don't need to do a separate configuration to enable it, if you are in tmux,
it will use tmux. If fzf binary is in path, it will use fzf to show the list of SSH connections, then
depending on the choice, it will open up the SSH connection into that instance.

Depends on sshpass when the instance has a password.

To add autocomplete features, run this:

```sh
# in zsh
# add this to ~/.zshrc
eval $(_LOGINSSH_COMPLETE=zsh_source loginssh)

# in bash
# add to ~/.bashrc
eval $(_LOGINSSH_COMPLETE=bash_source loginssh)

# in fish
# add this to ~/.config/fish/completions/loginssh.fish
eval (env _LOGINSSH_COMPLETE=fish_source loginssh)
```

## How to install?

From pip:
```sh
# requires python3.9
python3.9 -m pip install loginssh
```

For main branch,

1. `git clone https://github.com/nikochiko/loginssh && cd loginssh`
1. `pip3 install -e loginssh`

## Why did I do this?
I enjoyed making this.

I didn't have to write this. I could use something already available, but then
I wouldn't have gotten to also rewrite ORMs and password managers. Yes, hidden in this repository is a
mini ORM and a mini password manager. I also like to flex that I use my own tools.   

## Note

I won't be actively pushing code to this repo. I will keep using it for my personal use,
but most probably that won't be needing any more changes.

That being said, it will make me extremely happy if someone else is using it. If you are using it, you are
in no way compelled to suggest improvements, but that will also make me happy.

## Another note
(not affiliated to logins.sh in way... yet)
ComboJSONAPI 1.1.2
4 plugins for Flask-COMBO-JSONAPI package.
License: MIT
Keywords: web api rest rpc swagger jsonapi flask sqlalchemy marshmallow plugin

.. image:: https://github.com/AdCombo/combojsonapi/workflows/Python%20tests%20and%20coverage/badge.svg
   :alt: ComboJSONAPI actions
   :target: https://github.com/AdCombo/combojsonapi/actions

.. image:: https://coveralls.io/repos/github/AdCombo/combojsonapi/badge.svg?branch=master
   :alt: ComboJSONAPI coverage
   :target: https://coveralls.io/github/AdCombo/combojsonapi?branch=master

.. image:: https://img.shields.io/pypi/v/combojsonapi.svg
   :alt: PyPI
   :target: http://pypi.org/p/combojsonapi

ComboJSONAPI
============
ComboJSONAPI is a set of plugins made for `Flask-COMBO-JSONAPI <https://github.com/AdCombo/flask-combo-jsonapi>`_ module.

1. **Permission** plugin enables access control to models and their fields in GET, POST,
   PATCH and DELETE methods. (`Permission Plugin docs`_)
2. **ApiSpecPlugin** simplifies automated JSONAPI documentation. (`ApiSpec Plugin docs`_)
3. **RestfulPlugin** for apispec library in the **ApiSpecPlugin** enables documenting GET parameters
   with Marshmallow schemas. (`Restful Plugin docs`_)
4. **EventPlugin** enables RPC creation for those cases when you can't make it with pure JSON:API
   (`Event Plugin docs`_).
5. **PostgreSqlJSONB** features filtering and sorting data by first-level key values of JSONB values in
   PostgreSQL (`PostgreSqlJSONB Plugin docs`_).

Installation
============

:code:`pip install combojsonapi`

Documentation
=============

- https://combojsonapi.readthedocs.io/


Contributing
============
If you want to contribute to the code or documentation, the `Contributing guide is the best place to start`_.
If you have questions, feel free to ask


Documentation
=============

To update docs:


.. code:: sh

    # go to docs dir
    cd docs
    # gen .pot files
    make gettext
    # update .po files for existing langs / create new
    sphinx-intl update -p _build/locale -l ru


- add new langs via additional flag :code:`-l es`
- add translations to :code:`docs/locale/<lang>/LC_MESSAGES`
- to check your translations run :code:`sphinx-build -b html -D language=ru . _build/html/ru` and check generated HTML files


License
=======
`MIT`_

.. _`Contributing guide is the best place to start`: https://github.com/AdCombo/combojsonapi/blob/master/CONTRIBUTING.rst
.. _`MIT`: https://github.com/AdCombo/combojsonapi/blob/master/LICENSE

.. _`Event Plugin docs`: https://combojsonapi.readthedocs.io/en/latest/event_plugin.html
.. _`ApiSpec Plugin docs`: https://combojsonapi.readthedocs.io/en/latest/api_spec_plugin.html
.. _`Restful Plugin docs`: https://combojsonapi.readthedocs.io/en/latest/restful_plugin.html
.. _`Permission Plugin docs`: https://combojsonapi.readthedocs.io/en/latest/permission_plugin.html
.. _`PostgreSqlJSONB Plugin docs`: https://combojsonapi.readthedocs.io/en/latest/postgresql_jsonb_plugin.html