semvec/pypi-packages huggingface dataset:
djc 0.7.2
Command Line Interface for Django with Nifty Scripts
Keywords: cli,django,python

# djc
-  Command Line Interface for Django with Nifty Scripts

# usage
Install djc in the same environment as your Django project

## create a new user
Setting safe to true, makes it so the command doesn't exit with an error code if the user already exists
```bash
djc create-user --username="daniel" --email="example@gmail.com" --password="password" --debug="true" --safe="true"
```
You can also run `djc create-superuser` which takes the same flags and arguments.

## run a file within the Django environment
```bash
djc run --filepath seed.py
```
or
```bash
djc run -f seed.py
```

## makemigrations
```bash
djc makemigrations
```

## run migrations
```bash
djc migrate
```

## collect static files
This command automatically answers any questions with yes.
```bash
djc collectstatic
```
cicc-colors 0.3.1
Library of color palettes for CICC WM slides, reports and tables.

# CICC Colors

Library of color palettes for CICC WM slides, reports and tables.
CICC调色板可以用于在使用Python生成图表或报告时，能够匹配CICC的颜色模板。

## Install

`pip install cicc_colors`

## How to Use

1. 直接使用模板颜色,颜色使用 *ppt_x_y* 来标记, *x*, *y* 是CICC PPT模板中色版的位置。

```python
from cicc_colors import colors
colors.ppt_1_1
>>> Color(203,170,123,255)
colors.ppt_1_1.hex()
>>> 'CBAA7B'
colors.ppt_1_1.rgb()
>>> (203,170,123)
colors.ppt_1_1.normal_rgb()
>>> (0.796078431372549, 0.6666666666666666, 0.4823529411764706)
```

2. 自定义颜色，使用 r,g,b 来定义颜色后使用

```python
from cicc_colors import colors
user_color = colors.Color(115,30,0)
>>> Color(115,30,0)
user_color.hex()
>>> '731E00'
user_color.hex(with_hash=True)
>>> '#731E00'
user_color.rgb()
>>> (115, 30, 0)
user_color.normal_rgb()
>>> (0.45098039215686275, 0.11764705882352941, 0.0)
```

3. rgb 转 hex

```python
from cicc_colors import colors
colors.RGB2Hex(203,170,123)
>>> 'CBAA7B'
colors.RGB2Hex(203,170,123, with_hash=True)
>>> '#CBAA7B'
```

4. hex 转 rgb

```python
from cicc_colors import colors
colors.Hex2RGB('#FF0FF0')
>>> (255, 15, 240)
```

## How to Contribute
evomo-mqtt 1.0.2
A Python Library to simplify connection to Evomo IoT Platform

# Evomo Python

This is a Python library to simplify the connection to Evomo IoT Platform. For more information about the platform itself, please visit the https://evomo.jeager.io.  

## Installation
Make sure you have Python (2 or 3) and pip installed.
```
pip install evomo-mqtt
```

### Usage Example
#### Send data
```python
from evomo_mqtt import evomo

myData = {
    'T' : 77,
    'H' : 10
}

evomo.send(myData, 'your-client-id', 'your-device-id')
```

### API Reference

* `send(data, clientID, deviceID)`  
    Send data to your Evomo project. This can be a python dictionary or string.  
    return: response data from evomo
version-upper-hkiang01 0.0.1
Bump version strings in your repo
Requires Python: >=3.6

# version_upper

[![Build Status](https://travis-ci.com/hkiang01/version_upper.svg?branch=master)](https://travis-ci.com/hkiang01/version_upper)
[![Coverage](https://coveralls.io/repos/github/hkiang01/version_upper/badge.svg?branch=master&service=github )](https://coveralls.io/github/hkiang01/version_upper?branch=master)

Primarily a reaction to [bumpversion](https://github.com/peritus/bumpversion) not supporting git hashes -- [issue](https://github.com/peritus/bumpversion/issues/125)

## Overview

```
Usage: version-upper [OPTIONS] COMMAND [ARGS]...

  A tool to update version strings in files using semantic versioning and
  commit hashes.

  Examples:

  # bump commit sha version
  version-upper bump commit_sha

  # bump patch version
  version-upper bump patch

  # bump patch version as release candidate
  version-upper bump patch --release-candidate

  # bump minor version
  version-upper bump minor

  # bump major version
  version-upper bump major

  The config file adheres to the Config Pydantic schema, and is named
  version_conifg.json by default.

  Here is a sample config:
  {
      "current_version": "0.0.0",
      "current_semantic_version": "0.0.0",
      "files": []
  }

Options:
  --config TEXT  [default: version_upper.json]
  --help         Show this message and exit.

Commands:
  bump                      Bumps version strings, updates config.
  config-schema             Prints the config schema in JSON
  current-semantic-version  Prints the current semantic version
  current-version           Prints the current version
  release                   Removes rc from the version strings
  sample-config             Prints a sample config
```

## Configuration

Create a file called `version_upper.json` (can be overridden using `--config`) like below:

```json
{
  "current_version": "0.0.0",
  "current_semantic_version": "0.0.0",
  "files": ["main.py", "app/version.json"]
}
```

Be sure to add files to `"files"` otherwise nothing will be updated :)