semvec/pypi-packages huggingface dataset:
bytecomp 1.1.0
Utilities to work with bytecode.
Requires Python: >=3.5
Keywords: bytecode,python

# Bytecomp v1.1.0
Utilities for working with bytecode.

**Magic:**
```py
import bytecomp

bytecomp.MAGIC # Returns Magic
```

**PYC Headers:**
```py
import bytecomp

bytecomp.HEADER # Returns .pyc Header
bytecomp.generate_header() # Also returns a .pyc header
```
**Compiling Bytecode:**
```py
import bytecomp

code_object = compile("""print('Hello!')""",'file','exec')
pyc = open('compiled.pyc','wb')
pyc.write(bytecomp.compile_object(code_object))
pyc.close()

# Above code generates a working .pyc file from a code object.
```

**Executing Bytecode:**
```py
import bytecomp

code_object = b'U\r\r\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s\x0c\x00\x00\x00e\x00d\x00\x83\x01\x01\x00d\x01S\x00)\x02z\x03Hi!N)\x01\xda\x05print\xa9\x00r\x01\x00\x00\x00r\x01\x00\x00\x00\xda\x03idk\xda\x08<module>\x01\x00\x00\x00\xf3\x00\x00\x00\x00'
bytecomp.exec_bytecode(code_object)

# Above code executes the bytes-like object (Can have a header or not have a header)
```

**Removing a header from Bytecode:**
```py
import bytecomp

bytecomp.remove_header(b'U\r\r\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s\x0c\x00\x00\x00e\x00d\x00\x83\x01\x01\x00d\x01S\x00)\x02z\x03Hi!N)\x01\xda\x05print\xa9\x00r\x01\x00\x00\x00r\x01\x00\x00\x00\xda\x03idk\xda\x08<module>\x01\x00\x00\x00\xf3\x00\x00\x00\x00')

# Above code removes the header (First 16 bytes) so you can unmarshal it and execute it
```

**Encrypting Bytecode:**
```py
import bytecomp

code_object = compile("print('This is a test.')",'file','exec')
crypted = bytecomp.crypt_bytecode(code_object)

# Above code returns a string, which can be executed with the code below.
```

**Executing Encrypted Bytecode:**
```py
import bytecomp
bytecomp.exec_crypted('c%0*YdNS#d&&L@bBZH4CS3P4z1MEQT3dCicKq7%Pk+qG5g*A~Sj8%udo+~gnr%V-yQdA2Q$_ll;by)5*l$PgY7p`F~2WbQo_ZgFOG869eT4rP=7Gx$^vjD}ufs6(KfJq*%')

# Above code executes the encrypted code we made earlier.
```

**Bytecomp** is created by DeKrypt. <br>
[Support the project!](https://github.com/dekrypted/bytecomp) Leave a star.
JoyCat 0.0.11
This package visualizes the happiness of cats based on Japanese traditional lore.
Requires Python: >=3.7

# JoyCat

### This package visualizes the happiness of cats based on Japanese traditional lore.

In Japan, there is a saying, "When the autumn rains fall, the cat\'s face becomes three feet long. This means that the cat\'s face is longer and more joyful on rainy days than on sunny days in autumn, because the temperature is higher on rainy days. We assume that the more it rains, the more pleased the cat will be. Of course, this is limited to autumn. If it is autumn now, this will help. There is a lot going on in the world right now. But it does not matter to cats. If cats are happy, the world will be peaceful.

## Example

python JoyCat.py

output


![output](https://github.com/yuta08/JoyCat/blob/main/CatJoy.png)
jamegresc 0.1.9
A package for visualization of Resource recovery amount and gain on sale data in Meguro
Requires Python: >=3.7.7

# jamegresc
目黒区の年度別の資源ごみ回収量・売却益の可視化をしています。
範囲は2011~2019年の間です。
y軸は左が回収量(t)、右が売却益(1000円)です。

visualizes the amount of recyclable waste collected and proceeds from the sale of recyclable waste by year in Meguro City.
The range is between 2011~2019.
The y-axis is the amount collected (tons) on the left and the profit from sale (1000 yen) on the right.

# Dataset
・jamegrescは以下のページからデータをダウンロードして利用しています。\
・jamegresc uses the data downloaded from the following page.

https://catalog.data.metro.tokyo.lg.jp/dataset/t131105d0000000018/resource/31bb126f-6f10-433a-9f65-d00986c48385


・jamegrescは、以下の著作物を改変・加工して利用しています。\
・jamegresc uses the following copyrighted materials by modifying and processing them.

著作物のタイトル　資源回収量・収集拠点数・売却益、\
著作権者　東京都・目黒区、\
クリエイティブ・コモンズ・ライセンス 表示4.0国際（ https://creativecommons.org/licenses/by/4.0/deed.ja ）

# 実行例
```zsh
jamegresc -h
```

```zsh
jamegresc
```
![びん](/img/びん.png)