semvec/pypi-packages huggingface dataset:
politico-civic-utils 1.0a2.dev5
Shared utilities for POLITICO Civic apps
License: MIT

![POLITICO](https://rawgithub.com/The-Politico/src/master/images/logo/badge.png)

# politico-civic-utils

### Quickstart

1. Install the app.

  ```
  $ pip install politico-civic-utils
  ```

2. Add the app to your Django project and configure settings.

  ```python
  INSTALLED_APPS = [
      # ...
      'rest_framework',
      'civic_utils',
  ]

  #########################
  # civic_utils settings

  CIVIC_UTILS_SECRET_KEY = ''
  CIVIC_UTILS_AWS_ACCESS_KEY_ID = ''
  CIVIC_UTILS_AWS_SECRET_ACCESS_KEY = ''
  CIVIC_UTILS_AWS_REGION = ''
  CIVIC_UTILS_AWS_S3_BUCKET = ''
  CIVIC_UTILS_CLOUDFRONT_ALTERNATE_DOMAIN = ''
  CIVIC_UTILS_S3_UPLOAD_ROOT = ''
  ```

### Developing

##### Running a development server

Developing python files? Move into example directory and run the development server with pipenv.

  ```
  $ cd example
  $ pipenv run python manage.py runserver
  ```

Developing static assets? Move into the pluggable app's staticapp directory and start the node development server, which will automatically proxy Django's development server.

  ```
  $ cd civic_utils/staticapp
  $ gulp
  ```

Want to not worry about it? Use the shortcut make command.

  ```
  $ make dev
  ```

##### Setting up a PostgreSQL database

1. Run the make command to setup a fresh database.

  ```
  $ make database
  ```

2. Add a connection URL to the `.env` file.

  ```
  DATABASE_URL="postgres://localhost:5432/civic_utils"
  ```

3. Run migrations from the example app.

  ```
  $ cd example
  $ pipenv run python manage.py migrate
  ```
fluddy 0.0.3
Flask Buddy - CLI for managing Flask Apps.
License: MIT
Requires Python: >=3.5


Flask is fast becoming the most popular web development framework for Python. Developers will typically manage multiple Flask apps individually where each app will rely on its own virtual environment - this can become tedius when launching and updating multiple Flask Apps in development. 


Flask Buddy (fluddy) allows developers to launch and update their individual Flask Apps through a simple Command-Line Interface. CLI functionality also allows developers to create a launchable 'Hello from Fluddy' Flask App and to add previously created Flask Apps to fluddy for painless launches and updates.


Full README and usage details: https://github.com/jakedent/fluddy
version-comparison 0.2
Get a comparison between 2 version strings
License: MIT
Keywords: Compare,Versions

# Version Comparison

You can use this tool to compare 2 versions in order to know if is greater, lesser or equal to the other.

## Installation

`pip install version-comparison`

### Usage

- `get_lesser()` function return the lesser version of the provided, if none is lesser, the result is a `None` value.

- `get_greater()` function return the greater version of the provided, if none is greater, the result is a `None` value.

- `compare()` function return which one is greater, lesser or equal to the other.

```python
from versions_comparison import Comparison

versions = Comparison(version_1, version_2)
versions.get_lesser()
versions.get_greater()
versions.compare() 
```

### Valid Formats

- `dot numbers`: You can use numbers like `1.5`, `0.1.9`, `8.6.3`
- `chars`: You can validate a version with chars. `b > a` or `d < z`

### Exceptions

There are a coulpe of exceptions that could be used to catch possible errors throwed by the library.

- `FormatVersion`: This exception is thrown when the version provided does not have a valid format.
- `StringFormat`: This exception is thrown when the version provided is not a valid string type.

```python
from versions_comparison.exceptions import FormatVersion, StringFormat
```