resout
This description is under construction.
概要
Output path management tool for results (images, etc.) of numerical experiments, etc. 数値実験等の結果(画像等)の出力パス管理ツール
基本的な使い方
import resout
# 保存ファイル名の生成(自動で連番になる) [resout]
filename = resout.gen_save_path(".txt", label = "exp_result")
with open(filename, "w", encoding = "utf-8") as f:
f.write("hoge")
上記のように、gen_save_path()関数を使用することで連番のファイル名を取得できる
連番の説明
import resout
print(resout.gen_save_path(".txt", "exp_result")) # -> <path>\output_img\20210605T144210\exp_result_0.txt
print(resout.gen_save_path(".txt", "exp_result")) # -> <path>\output_img\20210605T144210\exp_result_1.txt
print(resout.gen_save_path(".txt", "exp_result")) # -> <path>\output_img\20210605T144210\exp_result_2.txt
画像を保存する
import resout
import numpy as np
img = np.zeros((200,200,3), dtype = np.uint8)
# 画像の保存 [resout]
resout.save_img(img, ratio = 1.0, ext = ".png", label = "resout_img")
保存パスの変更
import resout
# 保存パスの設定 [resout]
resout.set_save_dir("./results/")
# 保存ファイル名の生成(自動で連番になる) [resout]
filename = resout.gen_save_path(".txt", label = "exp_result")
with open(filename, "w", encoding = "utf-8") as f:
f.write("hoge")
Metadata
Release files for resout 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resout-0.0.5.tar.gz | 3.3 kB | Without provenance | Details for resout-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resout-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for resout-0.0.5-py3-none-any.whl |
Total release size: 7.0 kB
Release files / resout-0.0.5.tar.gz
| Download URL | resout-0.0.5.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48eff58e4b64d8646f76ebc66bb3a80facac376f2324b22294ea4f509aab33e1
|
|
BLAKE2b-256 checksum How to use checksums |
fd08a97794f95d52d36de87b4596edc31cf582d6d6079ed7884025a872434ffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / resout-0.0.5-py3-none-any.whl
| Download URL | resout-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f90be45f4c78d64a0ae376da84886a4424177de169b5f534b71be94bc23dfcb2
|
|
BLAKE2b-256 checksum How to use checksums |
18ec276601fa530d9c597a698d6e50c34637cc354e15e757c545bb6fcf918e42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for resout 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.