semvec/pypi-packages huggingface dataset:
dtwc 0.0.2
Change your desktop wallpaper daily!
License: MIT
Requires Python: >=3.5
Keywords: wallpaper,customization,personalization

# Desktop Wallpaper Changer
> This python script fetches images from popular sources and set those as your desktop wallpaper.

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/54b27c2612ee4301924e701d1b081375)](https://app.codacy.com/app/ayan-b/Desktop-Wallpaper-Changer)
[![Build Status](https://travis-ci.org/ayan-b/Desktop-Wallpaper-Changer.svg?branch=master)](https://travis-ci.org/ayan-b/Desktop-Wallpaper-Changer)
[![codecov](https://codecov.io/gh/ayan-b/Desktop-Wallpaper-Changer/branch/master/graph/badge.svg)](https://codecov.io/gh/ayan-b/Desktop-Wallpaper-Changer)
[![Downloads](https://pepy.tech/badge/dtwc)](https://pepy.tech/project/dtwc)


<!--[![HitCount](http://hits.dwyl.io/ayan-b/Desktop-Wallpaper-Changer.svg)](http://hits.dwyl.io/ayan-b/Desktop-Wallpaper-Changer) -->

Desktop Wallpaper Changer fetches images from popular sources and set those as your desktop wallpaper. Currently supported sources are:
- NASA Astronomical Picture of the Day
- Bing Picture of the Day
- Random Pictures from Unsplash.com
- National Geographic Picture of the Day
- Random Images from Desktoppr.

## Installation
- First install the package from pypi by running:
    `pip install dtwc`
  > If you want to get latest code from master branch of the repository, you can
  do so by running:
    `pip install git+https://github.com/ayan-b/Desktop-Wallpaper-Changer`

## Usage
- In order to change the background you can use the CLI:
    - `dwc -i` will open all the wallpaper sources and you can select the one
    you like.
    - `dwc -op <number>` will update the wallpaper from the number-th source
    as specified above.

**Platforms Supported**:
 - Windows
 - Linux
 If you want your favorite platform to be supported please open an issue in the
 [issue tracker](https://github.com/ayan-b/Desktop-Wallpaper-Changer/issues).

## Contributing
Want to contribute? Awesome! :tada:
Please head over to [CONTRIBUTING.md](/CONTRIBUTING.md) to check out how the
code works and some guidelines regarding contributions!
grpc-tls 1.1.12
This tools for generating grpc files
License: MIT

# gRPC tools
This is tool for auto generating *.proto and mapping django model with protobuf.

## Requirements
- Python (2.7, 3.4, 3.5, 3.6, 3.7)
- Django (1.11, 2.0, 2.1, 2.2)

## Installation
Install using pip
```
pip install grpc-tls
```

Add 'grpc_tls' to your INSTALLED_APPS setting.
```
INSTALLED_APPS = (
    ...
    'grpc_tls',
)
```

Update list apps your want migrate to protobuf:
`GRPC_TLS_MODELS_APP=['core']`

Update proto file name:
`GRPC_TLS_BASE_PROTO='app_name'`.

*Note*: This name must be unique if your app run multiple *.proto file

## Usage
Generate *.proto file
```
python manage.py grpc_tls
```

All files will be generated in `grpc_dir/*`

## Example
Let's take a look at a quick example of running gRPC server.

First generate proto files by running command line above.

Then create a django command line: `run_grpc.py`.
```
import grpc
from concurrent import futures
from django.core.management.base import BaseCommand

from grpc_dir import auto_grpc_app, grpc_app_pb2_grpc

class Command(BaseCommand):
    help = 'Start gRPC server'

    def handle(self, *args, **options):
        server = grpc.server(futures.ThreadPoolExecutor(
            max_workers=10))
        grpc_app_pb2_grpc.add_GRPCAPPServicer_to_server(
            auto_grpc_app.AutoGRPC(), server)
        server.add_insecure_port('[::]:50051')
        server.start()
        print('server started on port 50051 ...')
        try:
            while True:
                pass
        except KeyboardInterrupt:
            server.stop(0)
```

Start gRPC server:
```
python manage.py run_grpc
```
You can now send request at `http://127.0.0.1:50051/`

## Notes
DO NOT FILES IN `grpc_dir`
AlarmTime 0.1.4
For calculating time difference from current time to Target time and can detect a time from our natural language
License: MIT

from AlarmTime.AlarmTime import DetectDate

##############################################

t = DetectDate(1570000023345)
print(t.now) #2019-10-02 13:07:39.393012
t = DetectDate('2019/5/2/14/5')
print(t.now) #2019-05-02 14:05:39.393185
t = DetectDate()
print(t.now) #2019-04-21 12:26:12.542967
############################################

t = DetectDate()

target_time = t.DateTimeDetect('detect the time and date on December 16 8 p.m') print(target_time)

target_time = t.DateTimeDetect('detect the time and date on December 16 ') print(target_time)

target_time = t.DateTimeDetect('after 700 days') print(target_time)

target_time = t.DateTimeDetect('after 6 month 700 days 8 hour 5 minute') print(target_time)

target_time = t.DateTimeDetect('after 700 days') print(target_time)

now we can get the value of target year, day, month, hour, minute, second
print(target_time.day)

=============================================================================
2019-04-21 12:26:12.542967
2019-12-16 20:00:00.542967
2019-12-16 00:00:00.542967
2021-03-21 12:26:12.542967
2021-09-20 20:31:12.542967
2021-03-21 12:26:12.542967
21
=============================================================================
minute_diff = t.minute_diff_from_now('after 1 days')

print(minute_diff) #1440.0

hour_diff = t.hour_diff_from_now('after 1 days')

print(hour_diff) #24.0

day_diff = t.day_diff_from_now('after 1 days')

print(day_diff) #1.0

sec_diff = t.second_diff_from_now('after 1 days')

print(sec_diff) #86400.0
poetry-org 0.1.8
Re-organize a single-file app into a poetry directory for building.
License: MIT
Requires Python: >=3.6,<4.0

# poetry-org
Reorganizes files to the same structure as provided with `poetry new` without 
creating new files. 

This script is useful when using `poetry` to manage a project that was not 
created with `poetry new` but was initialized with `poetry init`; the script 
allows conversion from a simple file structure (e.g., `proj_dir/app_name.py`) 
into a more standard one (e.g., `proj_dir/app_name/app_name.py`) for building 
with `poetry build`. 

The script moves the app files from the root project directory into a sub-directory 
named after the app (as specified in the `pyproject.toml` file), leaving the 
meta files (e.g., `README.md`, `LICENSE`, `pyproject.toml`) in the root 
directory.

# Installation

Install with `pip` using
```bash
pip install poetry-org
```

# Usage

Run in the root directory of the poetry project (where `pyproject.toml` is located). 
```bash
poetry-org
```
directory-to-sql 0.1.2
Get a SQL database of file directory data.
License: MIT

directory_to_sql
======================

Get a SQLite database of a directory tree.

.. image:: https://travis-ci.com/hydrospanner/directory_to_sql.svg?branch=master

The data retrived includes:

- File sizes and modification date.
- Folder sizes and file counts.
- Recursive (including sub-folders) folder sizes and file counts.

To create the database and execute some example queries
listing largest files and folders::

  from directory_to_sql import get_db, top_10
  conn = get_db('\\', 'db.db')
  top_10(conn)