try to upload to Pypi
Project description
suger
@author SolarisNeko
What is it
Use Python in Decorator / Annotation Like Java Lombok / C# Annotation / TypeScript Decorator
How to use 如何使用
@string | str
@string
class MockData:
def __init__(self, age):
self.age = age
data = MockData(18)
# Output = "MockData(age=18)"
print(data)
@csv | CSV
@csv
class MockData:
def __init__(self, name, age):
self.name = name
self.age = age
self.emptyTips = ''
class Test(TestCase):
def test_csv(self):
data = MockData(name='neko', age=18)
# csv 输出文本
print(data.csv_str())
# csv 的格式
print(data.csv_format())
# 示例中,有个字段为空
# neko,18,
# name,age,emptyTips
git init
git remote add github https://github.com/SolarisNeko/neko233-python-suger.git
git remote add origin https://gitee.com/SolarisNeko/neko233-python-suger.git
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
suger-0.0.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
suger-0.0.2-py3-none-any.whl
(6.6 kB
view hashes)