semvec/pypi-packages huggingface dataset:
flasknoodle 1.0.5
flask project generator
License: MIT

# Flask Instant Noodle | Quick way to bootstrap full Flask project
![Flask Image](https://i.ibb.co/1nTxZkv/flask.png)

## Description
This is a simple package that enables the user to quickly bootstrap a standard Flask project.
![Sample Folder Structure](https://i.ibb.co/DQw3MjB/file-Structure.png)

## Installation
* Install virtualenv in current directory.
```bash
virtualenv venv
# 0r
python3.8 -m venv.
```

* Activate virtual environment
```bash
source venv/bin/activate
# or
source bin/activate
```

* Install Package in Current directory **(only required for first time instation in machine)**
```bash
pip install flasknoodle
```

* Generate complete Flask project template in current directory **(default project name is "server")**
```bash
flasknoodle
```

* cd into current directory (i.e. **server**)


* Install dependent packages in requirements.txt
```bash
 pip3 install -r requirements.txt
```

* Run Application
```bash
 python3 manage.py
```
##### Note: Application will run on http://127.0.0.1:5000/

## Contributing
Pull requests are welcome. Kindly ensure your commit messages are detailed enough to capture all changes done

## License
[MIT](https://choosealicense.com/licenses/mit/)
MIT License

Copyright (c) [2021] [Ayokunle Odutayo]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
django-xgeeks-timestamps 0.1
Timestamps and Soft Delete Patterns in Django Models
License: MIT

# Django Timestamps

Timestamps and Soft Delete Patterns in Django Models.

1. Add "timestamps" to your INSTALLED_APPS setting like this:

```python
INSTALLED_APPS = [
    # ...
    'timestamps',
]
```

2. In your models:

a) For models you want timestamps, just inherit Timestample:

```python
from timestamps.models import models, Timestample


class YourModel(Timestample, models.Model):
    # your fields here ...

```

b) For models you want soft-delete, just inherit SoftDeletes:

```python
from timestamps.models import models, SoftDeletes


class YourModel(SoftDeletes, models.Model):
    # your fields here ...

```

c) If you want both, you can also inherit from Model for shorter convenience:

```python
from timestamps.models import models, Model


class YourModel(Model, models.Model):
    # your fields here ...

```


## Soft Deleting

- To get all objects without the deleted ones:

```python queryset = YourModel.objects```

- To get only deleted objects:

```python queryset = YourModel.objects_deleted```

- To get all the objects, including deleted ones:

```python queryset = YourModel.objects_with_deleted```


### To soft delete an instance

```python
some_model = MyModel.objects.first()
some_model.delete()  # or some_model.delete(hard=False)
```

### To restore an instance

```python
some_model = MyModel.objects_deleted.first()
some_model.restore()
```

### To hard delete an instance

```python
some_model = MyModel.objects.first()
some_model.delete(hard=True)
```

### To bulk soft delete a queryset

```python
qs = MyModel.objects  # you can also apply filters to bulk delete a subset: qs = MyModel.objects.filter(...)
qs.delete()  # or some_model.delete(hard=False)
```

### To bulk hard delete a queryset

```python
qs = MyModel.objects  # ... bulk hard delete a subset: qs = MyModel.objects.filter(...)
qs.delete(hard=True)
```

### To bulk restore a queryset

```python
qs = MyModel.objects_deleted  # ... bulk restore a subset: qs = MyModel.objects_deleted.filter(...)
qs.restore()  # or some_model.delete(hard=False)
```
basestation 0.0.4
A library to read/write power states from Valve Index® Base Stations through BLE
License: MIT

===========
basestation
===========

A library to interface with the Valve Index® Base Stations (also commonly referred to as 'Lighthouse V2') through BLE.  
This lib mostly exists because homeasstant requires all code directly interfacing with hardware to be done through a seperate lib, but it can be used just fine as a standalone lib.

Features
===========

- Scan for nearby base stations.
- Power stations on/off
- Read power state
- Identify (make LED flash)

Description
===========

I will write a more extensive API doc when I have my homeassistant stuff going.