semvec/pypi-packages huggingface dataset:
FastHttpServer 2.0.1
An extremely lightweight and fast http server
License: MIT
Requires Python: >=3.0

# FastHttpServer - Simple, Lightweight, and Fast HTTP Server

## Overview

**FastHttpServer** is a pip package that offers a simple, lightweight, and fast HTTP server implemented in Python. This server provides a minimalistic solution for serving static content and handling basic HTTP requests. It is designed to be easy to set up, efficient in serving web content, and accessible as a pip-installable package.

## Installation

To install FastHttpServer, use the following pip command:

```bash
pip install FastHttpServer
```

Also make sure the python 'socket' package is installed


## Usage

1. After installation, you can import and run the package:


```python
from FastHttpServer import App
app = App()
```

or, if App is already reserved:

```python
import FastHttpServer
app = FastHttpServer.App()
```

2. Specify the routes of the server

use the app route wrapper and specify the route path. Make sure the proceeding function has a request parameter:

```python
@app.route('/')
def index(request):
    return '<h1>Success!</h1>'
```

by default the route only accepts GET requests if you want to accept POST or any other and it can allow or disallow cors (default: False), specify in the methods parameter of the route wrapper:

```python
@app.route('/', methods=['GET', 'POST'], allow_cors=True)
def index(request):
    if request['method'] == 'GET':
        return '<h1>Success</h1>'
    else:
        return {'message': 'Success!'}
```

It automatically detects html and json so no need to use json.dumps!

3. Run the server:

First, run the server by calling the listen function of 'app':

```python
app.listen()
```
By default, it runs on localhost port 3000 you can specify parameters to change both of those:

```python
app.listen(PORT=8000, ADDRESS='127.0.0.1')
```

Open your web browser and navigate to [http://localhost:3000](http://localhost:3000) (or the custom port and address you specified). You should see a success or 404 indicating that the server is running.


## Notes

- This server is suitable for serving static content in development and testing environments. For production use, consider security and scalability aspects.

- FastHttpServer is intentionally kept advanced and minimalistic.
 
- Make sure the server listen is called last the routes below it wont work.

Feel free to use and contribute to FastHttpServer. Keep your web serving simple and enjoy the speed!
dapla-team-cli 0.3.7
CLI for working with Dapla Teams
License: MIT
Requires Python: >=3.10.0,<3.12

# Dapla Team CLI

[![PyPI](https://img.shields.io/pypi/v/dapla-team-cli.svg)][pypi_]
[![Status](https://img.shields.io/pypi/status/dapla-team-cli.svg)][status]
[![Python Version](https://img.shields.io/pypi/pyversions/dapla-team-cli)][python version]
[![License](https://img.shields.io/pypi/l/dapla-team-cli)][license]

[![Tests](https://github.com/statisticsnorway/dapla-team-cli/workflows/Tests/badge.svg)][tests]
[![Codecov](https://codecov.io/gh/statisticsnorway/dapla-team-cli/branch/main/graph/badge.svg)][codecov]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]

[pypi_]: https://pypi.org/project/dapla-team-cli/
[status]: https://pypi.org/project/dapla-team-cli/
[python version]: https://pypi.org/project/dapla-team-cli
[tests]: https://github.com/statisticsnorway/dapla-team-cli/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/statisticsnorway/dapla-team-cli
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

A CLI for working with Dapla teams.

![dpteam --help](docs/dapla-team-cli-help.png)
![IAM Bindings](docs/iam-bindings.gif)

For [installation options see below](#installation), for usage instructions
[see the manual](https://statisticsnorway.github.io/dapla-team-cli/) or type `--help` on the command line.

<!-- this anchor is linked to, so avoid renaming it -->

## Installation

Install with [pipx]:

```console
pipx install dapla-team-cli
```

(Be patient, installation can take some time.)

## Features

- Assign bucket access and GCP roles to members for a limited amount of time
- Get an overview of a team's groups and members
- Make instant changes to your team's access groups, e.g. add a new team member to your team's "developers" group.
- Register team secrets (in a team's GCP Secret Manager service)
- Diagnose your system and get help to install required tooling for easy setup of your development environment

## Links

- [PyPI]

## Usage

Please see the [Command-line Reference] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_Dapla Team CLI_ is free and open source software.

## Issues

If you encounter any problems, please [file an issue] along with a detailed description.

[pypi]: https://pypi.org/project/dapla-team-cli/
[file an issue]: https://github.com/statisticsnorway/dapla-team-cli/issues
[pipx]: https://pypa.github.io/pipx

<!-- github-only -->

[license]: https://github.com/statisticsnorway/dapla-team-cli/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/dapla-team-cli/blob/main/CONTRIBUTING.md
[command-line reference]: https://statisticsnorway.github.io/dapla-team-cli/command_reference/