generate file name from file info
Project description
namefile
Usage
from namefile import namefile, parse
filename = namefile(
stem='glue-cola',
suffix='csv',
tags=('classification', 'processed'),
date=True,
version='1.2.0.post1'
)
# filename: 'glue_cola-classification-processed.20220829.v1.2.0.post1.csv'
fileinfo = parse(filename)
# fileinfo: FileInfo(stem='glue_cola', suffix='csv', tags=['classification', 'processed'], date=datetime.datetime(2022, 8, 29, 0, 0), version=<Version('1.2.0.post1')>)
conda env
conda env create
poetry
poetry install
Makefile
# 帮助文档
make help
# 格式化代码
make style
# 静态检查
make lint
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
namefile-0.1.0.post1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for namefile-0.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 544408b0b3b129511eadf68ef97698c7cd18a8dd45aa542f0f29d6b4a5aac8d5 |
|
MD5 | 753f90b8ac7fb3744d70ce6b3397ca49 |
|
BLAKE2b-256 | 07c0d2748b716b3098a2292b422d5ca3acbd5f0d530d276248f0c5c9a6969d2f |