semvec/pypi-packages huggingface dataset:
django-short-links 0.1.5
URL shortener Django app
License: MIT
Requires Python: >=3.9,<4.0

# django-short-links

URL / Link shortener web app.

## Getting Started

Install `links`:

```shell
pip install django-short-links
```

Add `links` to `INSTALLED_APPS`. Make sure that `django.contrib.auth` installed, then add a new setting `LINKS_SITE_NAME`, in `settings.py`:

```python
# settings.py

INSTALLED_APPS = [
    ...
    'links',
    'django.contrib.auth',
    ...
]

# Your server's IP address without trailing slash
LINKS_SITE_URL = 'https://your.domain.com'
```

Include `links` and `django.contrib.auth.urls`, in project's `urls.py`:

```python
# urls.py

urlpatterns = [
    ...
    path('l/', include('links.urls')),
    path('accounts/', include('django.contrib.auth.urls')),
    ...
]
```

Run `migrate`:

```shell
python manage.py migrate
```

Now, you can open your browser at `https://your.domain.com/l/`.

I hope that you find this useful.
pgqmini 0.0.6
pgqmini is a lightweight, easy-to-use Python library for managing PostgreSQL message queues.
License: MIT

# **pgqmini**

![version](https://img.shields.io/badge/version-0.0.6-blue)
![license](https://img.shields.io/badge/license-MIT-green)

pgqmini is a lightweight, easy-to-use Python library for managing PostgreSQL message queues. It provides a simple interface for adding and retrieving messages from a PostgreSQL-based queue, as well as handling timeouts and managing message processing.

## **Table of Contents**

1. **[Installation](#installation)**
2. **[Usage](#usage)**
3. **[Contributing](#contributing)**
4. **[License](#license)**
5. **[Contact](#contact)**

## **Installation**

To install pgqmini, you can use pip:

```
pip install pgqmini
```

You also need to have a PostgreSQL server up and running. The library uses the psycopg2 package to connect to the PostgreSQL server.

## **Usage**

Here is a basic example of how to use pgqmini:

### **Publisher**
```python
from pgqmini import PGQ

pgq = PGQ(
    qname="message_queue",
    dbname="pgq",
    host="127.0.0.1",
    user="username",
    password="password",
    port=5432,
)

pgq.connect()

pgq.pub('{"key1": "value1", "key2": "value2"}')

pgq.disconnect()
```

### **Subscriber**
```python
from pgqmini import PGQ

pgq = PGQ(
    qname="message_queue",
    dbname="pgq",
    host="127.0.0.1",
    user="username",
    password="password",
    port=5432,
)

pgq.connect()

def process_message(payload: str):
    print(payload)

while True:
    pgq.sub(process_message)
```

In this code, we first create a **`PGQ`** object with the necessary database connection parameters. We then connect to the database and enter a loop where we process messages from the queue.

For a more detailed usage guide, please check out the [Usage Guide](https://github.com/over-engineers/pgqmini/wiki/PGQ-(PostgreSQL-Queue)-Class) in our wiki.


## **License**

pgqmini is released under the MIT License. See the `LICENSE` file for more details.

## **Contact**

If you have any questions, issues, or suggestions, please open an issue in this repository, or contact the maintainer at **jangsc0000@gmail.com**.
depwatch 0.1.3
A Simple command-line tool for collecting the times of various events in a project's lifecycle
License: MIT
Requires Python: >=3.11

# depwatch

depwatch is a simple command-line tool for collecting the times of various events in your project's lifecycle, from code commits to deployments. Event times are retrieved from repository management tools (like GitHub) and CI tools (like CircleCI).

## Installation

Install depwatch using pip:

```shell-session
$ pip install depwatch
```

## Usage

Execute the command with your access tokens.

```shell-session
GITHUB_ACCESS_TOKEN=<your_token> CIRCLECI_ACCESS_TOKEN=<your_token> depwatch <user_name>/<repository_name>
```

The results are output to the output.csv file.

```shell-session
$ cat output.csv
first_committed_at,merged_at,deployed_at
2023-02-25T00:48:18+00:00,2023-02-25T00:57:06+00:00,2023-02-25T00:58:11+00:00
2023-02-25T00:46:52+00:00,2023-02-25T00:54:05+00:00,2023-02-25T00:55:12+00:00
2023-02-25T00:43:47+00:00,2023-02-25T00:45:33+00:00,2023-02-25T00:46:39+00:00
...
```

### Note: Using the `.env` file

Alternatively, you can use the `.env` file. Create the `.env` file in the directory where you want to run the command as follows.

```shell-session
cp .env.example .env
```

Set the values according to the instructions in the `.env` file.

### Note: Scope of the GitHub Personal Access Token

GitHub offers [two types of personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token), fine-grained personal access tokens and classic personal access tokens. For personal repositories, you can use both. For organizatio repositories, we recommend using classic tokens, as we know that fine-grained tokens do not allow you to get private repositories.

If you use fine-grained personal access tokens, specify read-only permissions for **Contents**, **Metadata**, and **Pull requests**. If you use classic personal access tokens, specify **repo** scope.

## Contributing

Comming soon!

- TODO: Use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)

## License

This code is released under the MIT License. See [LICENSE](/LICENSE) for details.