semvec/pypi-packages huggingface dataset:
aefaalgo 0.0.5
Python package for AEFA: Artificial electric field algorithm for global optimization
License: MIT
Requires Python: >=3.6
Keywords: Optimization,Soft computing,Artificial intelligence,Electric force

# AEFA

AEFA is a Python library for AEFA: Artificial electric field algorithm, a novel algorithm for solving non-linear optimization problems.
The details of the algorithm can be found here at: https://medium.com/artifical-mind/artificial-electric-field-algorithm-for-optimization-fb6f57f413b4
You may access the paper for the same at http://www.sciencedirect.com/science/article/pii/S2210650218305030

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install aefaalgo.

```bash
pip install aefaalgo
```

## Usage

```python
from aefaalgo.aefa_optimize import aefa

# returns optimum fitness value and space coordinates
aefa().optimize(N, max_iter, func_num)
Keyword arguments:
N: number of particles in search space

max_iter: number of iterations

func_num: Specifies the function to be optimized

Optional Keyword Arguments: 
tag: specifies whether we want maxima or minima.
0 by default for maximization. Specify tag=1 for minimization.

Rpower: exponent for the normalized distance between the particles.
Default value 1

FCheck: This factor ensures that only 2-6% charges apply force to others in the last iterations.
Set to True by default. 

show_plot: True if you want to visualize convergence to the optimum, False otherwise and default.

```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
[MIT](https://choosealicense.com/licenses/mit/)
spangle 0.12.0
A small and flexible ASGI application framework for modern web.
License: MIT
Requires Python: >=3.9,<4.0

---
version: v0.12.0
---

# spangle

[![PyPI](https://img.shields.io/pypi/v/spangle)](https://pypi.org/project/spangle/)
[![PyPI - License](https://img.shields.io/pypi/l/spangle)](https://pypi.org/project/spangle/)

A small and flexible ASGI application framework for modern web.

Note: `spangle` is on pre-alpha stage, so any updates may contain breaking changes.

## Getting Started

### Install

```shell
pip install spangle
pip install hypercorn # or your favorite ASGI server
```

### Hello world

```python
# hello.py
import spangle

api = spangle.Api()

@api.route("/")
class Index:
    async def on_request(self, req, resp):
        resp.set_status(418).set_text("Hello world!")
        return resp

```

```shell
hypercorn hello:api
```

## Features

- Components with dependencies
- Flexible url params
- `Jinja2` built-in support
- Uniformed API
- Single page application friendly

...and more features. See [documents](http://tkamenoko.github.io/spangle).

## Contribute

Contributions are welcome!

- New features
- Bug fix
- Documents

### Prerequisites

- Python>=3.9
- git
- poetry

### Build

```shell
# clone this repository.
git clone http://github.com/tkamenoko/spangle.git
# install dependencies.
poetry install
```

### Test

```shell
poetry run poe test
```

### Update API docs

```shell
poetry run poe doc:build
```