semvec/pypi-packages huggingface dataset:
mds 0.0.6
Markdown Server
License: MIT
Requires Python: >=3.6.0


# mds - markdown server
**M**ark**d**own **S**erver is a simple Python application that serves local markdown files in your browser for simple viewing and editing. Markdown server is still in early development. 

### Installation
Via pip:

`pip3 install mds`

Via setup.py:

`pip3 install mistune bottle`

`python3 setup.py install`

### Usage
To use markdown server you simply need to point it to a directory where you keep markdown files. It will recursively search through the directory for files with a `*.md` extension. These can then be viewed and edited in the browser at localhost:3000. 

Serve notes on default port:
```
mds ~/notes
```

Serve notes on specific ports:
```
mds -p 8080 ~/notes
```

### Contributing
Contributing is welcome, just make a PR.

### License
MIT
oneservice 1.0.0
Wrapper around Flask aimed at conveniently creating microservices
License: MIT
Requires Python: >=3.7,<4.0
Keywords: microservice,micro,service,oneservice,one

# OneService

Wrapper around Flask aimed at conveniently creating microservices.

Features and limitations:
- `Microservice` creates a server that can call a handler method when `/` is hit (HTTP method is configurable)
- The handler method receives the request JSON data and must respond with a `(dict, int)` tuple containing
the response data and response status code

## Usage
```python
from oneservice import Microservice

def return_doubled(json_data: dict) -> (dict, int):
    return {"result": int(json_data["a"]) * 2}, 200

m = Microservice(handler=return_doubled)
m.start()
```

You may then hit the microservice and its health endpoint:
```bash
curl http://localhost:5000/health
curl -X POST -H "Content-Type: application/json" --data '{"a": 2}' http://localhost:5000/
```

See [/examples](examples) for more code usage samples.