semvec/pypi-packages huggingface dataset:
cdeid 0.1.3
A Customized De-identification framework
Requires Python: >=3.7
Keywords: DE-IDENTIFICATION,NLP

![cDeid](resources/cdeid_logo_2020.png)

> A framework for training de-identification models to automatically remove protected health information (PHI) from the free text.

cDeid is a customized de-identification method. The users can easily train their own de-identification Models on the 
data sets which are extracted from their own free text corpus. cDeid is based on 3 popular NLP toolkits: [spaCy][spacy], 
[Stanza][stanza] and [FLAIR][flair]. 

## Installation
This project is based on Python 3.7+. Please install it if you do not have. PyTorch is used by FLAIR and Stanza toolkits.
It needs to be installed from [here][pytorch] before you install this project.
```sh
pip install cdeid
```
## Usage example
We are using the [pre-trained word2vec embeddings][word2vec] released from the CoNLL 2017 Shared Task. It is important
to specify the customized PHI types in the corpus otherwise it will cause runtime error during training the models.  
### Using the Python API
#### Train the models
```python
from cdeid.models.trainer import Trainer

phi_types = ['PHONE', 'PERSON', 'ADDRESS', 'IDN', 'DOB']
nlp = Trainer("C:/data", "C:/workspace", phi_types, "C:/wordvec/English/en.vectors.xz")
nlp.train()
```
#### De-identify a sample document
```python
from cdeid.deidentifier.phi_deid import PHIDeid

deider = PHIDeid("C:/workspace", "C:/output")
doc = deider("C:/raw/example.txt")
deider.output(doc)
```
### Using the command line
#### Train the models
```sh
python -m cdeid --command train --workspace C:/workspace --data_dir C:/data --phi_types PHONE PERSON ADDRESS IDN DOB --wordvec_file C:/wordvec/English/en.vectors.xz
```
#### De-identify a sample document
```sh
python -m cdeid --command deid --workspace C:/workspace --deid_output_dir C:/output --deid_file C:/raw/example.txt
```

## Release History

* 0.1.1
    * The first release
* 0.1.2
    * Modify Readme and Setup
* 0.1.3
    * Update model trainers

## Contributors

Leibo Liu - initial work - [leiboliu](https://github.com/leiboliu/)

## License
[Apache License, Version 2.0](/LICENSE)

<!-- Markdown link & img dfn's -->
[spacy]: https://spacy.io/
[stanza]: https://stanfordnlp.github.io/stanza/
[flair]: https://github.com/flairNLP/flair
[word2vec]:https://lindat.mff.cuni.cz/repository/xmlui/bitstream/handle/11234/1-1989/word-embeddings-conll17.tar?sequence=9&isAllowed=y
[pytorch]: https://pytorch.org/
[demolink]: https://demo-wat.herokuapp.com/
titanicpackagegna 0.0.4
Notre premier package de machine learning
Keywords: python,titanic,ml,prediction,machine learning

# vidstream

Under construction! Not ready for use yet! Currently experimenting and planning!

Developed by Florian Dedov from NeuralNine (c) 2020

## Examples of How To Use (Buggy Alpha Version)

Creating A Server

```python
from vidstream import StreamingServer

server = StreamingServer('127.0.0.1', 9999)
server.start_server()

# Other Code

# When You Are Done
server.stop_server()
```

Creating A Client
```python
from vidstream import CameraClient
from vidstream import VideoClient
from vidstream import ScreenShareClient

# Choose One
client1 = CameraClient('127.0.0.1', 9999)
client2 = VideoClient('127.0.0.1', 9999, 'video.mp4')
client3 = ScreenShareClient('127.0.0.1', 9999)

client1.start_stream()
client2.start_stream()
client3.start_stream()
```

Check out: https://www.youtube.com/c/NeuralNine
django-ninja-apikey 0.2.1
Easy to use API key authentication for Django Ninja REST Framework
Requires Python: ~=3.6.2
Keywords: django,rest,ninja,auth,apikey

<div align="center">
    <h3>Django Ninja APIKey</h3>
    <em>Easy to use API key authentication for Django Ninja REST Framework</em>
</div>
<br>
<div align="center">
    <p>
        <a href="https://github.com/mawassk/django-ninja-apikey/actions/workflows/build.yml?query=branch%3Amain++" target="_blank">
            <img src="https://github.com/mawassk/django-ninja-apikey/workflows/build/badge.svg?branch=main" alt="build">
        </a>
        <a href="https://codecov.io/gh/mawassk/django-ninja-apikey" target="_blank">
            <img src="https://img.shields.io/codecov/c/github/mawassk/django-ninja-apikey?color=%2334D058" alt="coverage">
        </a>
        <a href="https://pypi.org/project/django-ninja-apikey/">
            <img src="https://img.shields.io/pypi/v/django-ninja-apikey?color=%2334D058&label=pypi%20package" alt="pypi">
        </a>
        <a href="https://github.com/psf/black" target="_blank">
            <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="black">
        </a>
    </p>
</div>

---

This is an unofficial [Django](https://github.com/django/django) app which makes it **easy** to manage API keys for the [Django Ninja REST Framework](https://github.com/vitalik/django-ninja).

**Key Features:**
- **Easy** integration in your projects
- Well integrated in the **admin interface**
- **Secure** API keys due to hashing 
- Works with the **standard** user model

## Installation

```
pip install django-ninja-apikey
```

## Usage
Add `ninja_apikey` to your installed apps in your django project:
```Python
# settings.py

INSTALLED_APPS = [
    # ...
    "ninja_apikey",
]
```
Run the included migrations:
```
python manage.py migrate
```
Secure an api endpoint with the API keys:
```Python
# api.py

from ninja import NinjaAPI
from ninja_apikey.security import APIKeyAuth

#  ...

auth = APIKeyAuth()
api = NinjaAPI()

# ...

@api.get("/secure_endpoint", auth=auth)
def secure_endpoint(request):
    return f"Hello, {request.user}!" 
```
Or secure your whole api (or a specific [router](https://django-ninja.rest-framework.com/tutorial/routers/)) with the API keys:
```Python
# api.py

from ninja import NinjaAPI
from ninja_apikey.security import APIKeyAuth

#  ...

api = NinjaAPI(auth=APIKeyAuth())

# ...

@api.get("/secure_endpoint")
def secure_endpoint(request):
    return f"Hello, {request.user}!" 
```
You can create now API keys from django's admin interface.

## License
This project is licensed under the terms of the MIT license.
ninja_apikey 0.2.0
Easy to use API key authentication for Django Ninja REST Framework
Requires Python: ~=3.6.2
Keywords: django,rest,ninja,auth,apikey

<div align="center">
    <h3>Django Ninja APIKey</h3>
    <em>Easy to use API key authentication for Django Ninja REST Framework</em>
</div>
<br>
<div align="center">
    <p>
        <a href="https://github.com/mawassk/django-ninja-apikey/actions/workflows/build.yml?query=branch%3Amain++" target="_blank">
            <img src="https://github.com/mawassk/django-ninja-apikey/workflows/build/badge.svg?branch=main" alt="build">
        </a>
        <a href="https://codecov.io/gh/mawassk/django-ninja-apikey" target="_blank">
            <img src="https://img.shields.io/codecov/c/github/mawassk/django-ninja-apikey?color=%2334D058" alt="coverage">
        </a>
        <a href="https://pypi.org/project/django-ninja-apikey/">
            <img src="https://img.shields.io/pypi/v/django-ninja-apikey?color=%2334D058&label=pypi%20package" alt="pypi">
        </a>
        <a href="https://github.com/psf/black" target="_blank">
            <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="black">
        </a>
    </p>
</div>

---

This is an unofficial [Django](https://github.com/django/django) app which makes it **easy** to manage API keys for the [Django Ninja REST Framework](https://github.com/vitalik/django-ninja).

**Key Features:**
- **Easy** integration in your projects
- Well integrated in the **admin interface**
- **Secure** API keys due to hashing 
- Works with the **standard** user model

## Installation

```
pip install django-ninja-apikey
```

## Usage
Add `ninja_apikey` to your installed apps in your django project:
```Python
# settings.py

INSTALLED_APPS = [
    # ...
    "ninja_apikey",
]
```
Run the included migrations:
```
python manage.py migrate
```
Secure an api endpoint with the API keys:
```Python
# api.py

from ninja import NinjaAPI
from ninja_apikey.security import APIKeyAuth

#  ...

auth = APIKeyAuth()
api = NinjaAPI()

# ...

@api.get("/secure_endpoint", auth=auth)
def secure_endpoint(request):
    return f"Hello, {request.user}!" 
```
Or secure your whole api (or a specific [router](https://django-ninja.rest-framework.com/tutorial/routers/)) with the API keys:
```Python
# api.py

from ninja import NinjaAPI
from ninja_apikey.security import APIKeyAuth

#  ...

api = NinjaAPI(auth=APIKeyAuth())

# ...

@api.get("/secure_endpoint")
def secure_endpoint(request):
    return f"Hello, {request.user}!" 
```
You can create now API keys from django's admin interface.

## License
This project is licensed under the terms of the MIT license.