semvec/pypi-packages huggingface dataset:
redorm 0.7.0
A simple redis ORM
License: MIT
Requires Python: >=3.6.1

# RedORM

A simple Redis ORM that only a madman would use in production.  
The red in RedORM both means Redis as well as the color red, as red is the fastest colour!

## Quick Start

To install `pip install redorm`

```python
from dataclasses import dataclass
from redorm import RedormBase, one_to_one, one_to_many, many_to_one, many_to_many


@dataclass
class Person(RedormBase):
    name: str
    age: int
    siblings = many_to_many(foreign_type="Person", backref="siblings")
    dad = many_to_one(foreign_type="Person", backref="children")
    children = one_to_many(foreign_type="Person", backref="dad")
    favourite_color = one_to_one("Color", backref="liker")


@dataclass
class Color(RedormBase):
    name: str
    liker = one_to_one(Person, backref="favourite_color")
```
```python
>>> red = Color.create(name="Red")
>>> homer = Person.create(name="Homer", age=50, favourite_color=red)
>>> print(repr(homer.favourite_color))
Color(id='dcb9aa50-554a-40a5-9acf-7d86c982e5ee', name='Red')
>>> print(repr(homer.children))
[]
>>> bart = Person.create(name="Bart", age=11, dad=homer)
>>> print(repr(homer.children))
[Person(id='424cd574-5382-4d34-89da-7233b3928405', name='Bart', age=11)]
>>> print(repr(bart.favourite_color))
None
>>> blue = Color.create(name="Blue", liker=bart)
>>> print(repr(bart.favourite_color))
Color(id='dc9df3c2-c592-4d87-a45e-f88a346342b4', name='Blue')
>>> print(repr(blue.liker))
Person(id='424cd574-5382-4d34-89da-7233b3928405', name='Bart', age=11)
>>> lisa = Person.create(name="Lisa", age=9, dad=homer.id, siblings=[bart])
>>> print(repr(homer.children))
[Person(id='205a459a-572c-41af-bae3-e6e730aada97', name='Lisa', age=9), Person(id='424cd574-5382-4d34-89da-7233b3928405', name='Bart', age=11)]
>>> bart.dad = None
>>> print(repr(homer.children))
[Person(id='205a459a-572c-41af-bae3-e6e730aada97', name='Lisa', age=9)]
```

## Why Redorm?

- Thread Safe
- Very fast
- Super simple to use
- Very little boilerplate

# Why not Redorm?

- Made in an afternoon
- Unlikely to be maintained
- Not thoroughly tested
- NOT THOROUGHLY TESTED
- Writing your own ORM is fantastic for learning, but you should not use it in prod
mhmovie 5.2.0
library for adding Music to video using very simple code
License: MIT
Requires Python: >=3.0

# mhmovie


mhmovie is a Python library for
adding music to a video with very simple code.
mhmovie runs in Python 3+.

## Examples

```python
from mhmovie import *

m = Movie("Movie.mp4")  # supports all moviepy formats
# you can get length by:
print(":".join(m.time()))  # 00:03:06

mu = Music("Music.wav")  # supports all moviepy formats
final = m + mu
final.save("final.mp4")  # save the Movie with the Music as final.mp4

############################ control audio of video
m = Movie("Movie.mp4")
mute_movie = m.mute()  # mute Music of Movie to mute_movie

m_audio = m.audio() # save audio to m_audio
m_audio = m_audio.vol(1.5)  # up volume to 150%
final = m + m_audio
final.save("movieUpVolume.mp4")
################################## effects
m = m.sub_clip(10,20) # extract subclip from 10s to 20s
# additional effects
m = m.rotate(10) # 10 degrees 
m = m.invert_colors()
m = m.time_mirror() # reverse timing
m = m.loop(5) # play 5 times
m = m.loop(duration=15) # loop for 15 seconds
m = m.resize(500,500) #resize each frame to 500x500 pixels
#### Music
m_audio = m_audio.sub_clip(10,20) # exctract audio from 10s to 20s
# overlay other music on this music (blend)
mu2 = Music("music2.mp3")
final_mu = m_audio.overlay(mu2)
final = m+final_mu
final.save("final.mp4")
########################## automatic mode
f = Folder("some_folder")
# some_folder has file of type mp4 and file of type mp3 and joins them automatically
f.load().save("output.mp4")  # save Movie+Music as output.mp4
######################### operators 
print(":".join(len(m)))  # length of clip: 00:03:06
#  effects
m = ~m # same as m.time_mirror()
m = m // (12, 43) # same as m.sub_clip(12,43)
m = m*6 # same as m.loop(6)
m = m%45 # same as m.rotate(45)
#### Music
m_audio = m_audio % mu2 # same as mu.overlay(mu2)
m_audio = m_audio // (12,43) #same as mu.sub_clip(12,43)
m_audio = m_audio**1.5 # same as mu.vol(1.5)
# you can combine operators
m = Movie("movie_original.mp4")
# reduce volume by half, add to movie, reverse and take subclip from 12s to 43s
m = (~(m + (m_audio ** 0.5)) // (12, 43)) 
m.save("final.mp4")
```

### Prerequisites
mhmovie depends on the moviepy python module.
the mhmovie main also depends on autoclick.

### Installing
To install with pip-
type in terminal:
```
(sudo) pip install mhmovie
```
## use from terminal:
```cmd
python -m mhmovie add m.mp4 mu.mp3 -o o.mp4
python -m mhmovie rotate m.mp4 90 -o o.mp4
and etc:
sub,mute,loop,audio,time_mirror,folder
```
## New in this version
Many bug fixes and changed to moviepy.

## Built With
* [moviepy](https://pypi.org/project/moviepy/) - process the Movie
* [autoclick](https://pypi.org/project/autoclick/) - for command line interface
## Author
matan h
## License
This project is licensed under the MIT License.
pdd-sdk 1.0.8
pdd_sdk
License: MIT
Requires Python: ~=3.4

# pdd_sdk
 原作者github链接:https://github.com/makelove/DDK_SDK

多多客接口python3版本

增加接口字段细节

:hot_pepper:pypi安装:pip install pdd_sdk

# 在setup.py 文件中依次输入如下代码上传pypi：
`pip install twine`
`python setup.py sdist`
`python setup.py install`
`twine upload dist/*`