This is AI-Accounting,Intelligent Accounting package for Ai-Accountants .这个时代叫做AI会计,为会计人打造的专属智能会计框架。
Project description
CPANLP: Certified Public Accountant Natural Language Processing toolkit
给您拜年了 Happy 🐰 Year
def Happy 🐰 Year():
wishes = ["新年快乐!兔年大吉!", "天天开心,身体健康!", "全家幸福,事事顺心!"]
happy_asset = Happy_New_Year_Asset("Everybody","2023-01-22",0.005,wishes)
happy_asset.add_wishes(wishes)
happy_asset.amortize(1)
happy_person = happy_asset.account
happy_income = happy_asset.amortization_history[0][1]
print(happy_person,"新年第一天的幸福:",happy_income,"😄")
if __name__ == '__main__':
Happy 🐰 Year()
We are the accounting-intelligent-ai Team of Beijing Foreign Studies University. We develop A package for intelligent certified accountants. 这个时代叫做AI,我们是北外智能会计博士研究团队,致力推动具有经济学基础的会计学的语言学转向(The Linguistic Turn of Accounting on Economic Basis)。
Redefining Accounting! Developed by Bfsu Intelligent Accounting Team (c) 2023 Github
Install & Import 安装和导入
For detailed installation instructions, see the documentation.
pip install cpanlp
import cpanlp as p
Features 主要功能
Narrating Accounting using Python
- sales increased 12% compared with fourth quarter 2021:
- North America segment sales increased 13% year-over-year to $93.4 billion, or increased 14% excluding changes in foreign exchange rates.
- International segment sales decreased 8% year-over-year to $34.5 billion, or increased 5% excluding changes in foreign exchange rates.
- AWS segment sales increased 20% year-over-year to $21.4 billion.
sale1 = p.Sale(quarter="Q4", amount=93.4, growth_rate=13%, year=2022, "North America")
sale2 = p.Sale(quarter="Q4", amount=34.5, growth_rate=-8%, year=2022, "International")
sale3 = p.Sale(quarter="Q4", amount=21.4, growth_rate=20%, year=2022, "AWS")
sales = [sale1, sale2, sale3]
total_sales = 0
for s in sales:
total_sales += s.amount
print(f"Segment: {s.segment}, Sale: {s.amount}")
print(f"Total Sales: {total_sales}")
- Get Report 今日财报
df = cp.gettoday()
标题 | 证券代码 | 证券简称 | 网址 | 日期 | id | |
---|---|---|---|---|---|---|
0 | 唐源电气:国金证券关于唐源电气2022年度现场检查报告 | 300789 | 唐源电气 | http://static.cninfo.com.cn/finalpage/2023-01-03/1215519757.PDF | 2023-01-03 | 1 |
report = cp.getreport(df.iloc[0, 3])
- Accounting Item 会计科目
gold_asset = cp.Asset(account="gold", debit=1000,date="2023-01-01")
print(gold_asset.bubble)
- Information Asymmetry 信息不对称
info = cp.AsymmetricInformation(sender="investor", receiver="company_A", message="I am very interested in investing in your business", hidden_information="I have a limited budget")
info.get_advantage()
- Entrepreneur 企业家
john = cp.Entrepreneur(name="John Smith",age=30,wealth=100000,utility_function=0, experience=5,company=LLC("Apple","Electronics",1000000),entrepreneurship=Entrepreneurship(leadership=9.0))
john.strive_for_excellence()
- Strategy 策略
huawei = cp.FinancialStrategy("huawei","defense",poison_pill(1000,0.1))
Decorator 语言装饰器:
- Information Asymmetry 信息不对称
info = cp.AsymmetricInformation(sender="investor", receiver="company_A", message="I am very interested in
investing in your business", hidden_information="I have a limited budget")
info.get_advantage()
Module 主要模块:
- Abnormal 异象:
Winner Curse赢者诅咒
,Bubble泡沫
- Accounting Account 会计科目:
Asset资产
,Liability负债
,Equity所有者权益
,Income收入
,Cashflow现金流
- Business 业务:
MainBusiness主营业务
- Contract 合约:
Lease租约
,Loan Contract借贷合同
,Labor Contract劳动合同
,Financial Instrument金融工具
- Control 控制:
Voting Power 投票权
,Commodity Control商品控制权
,Significant Influence重大影响
- Culture 文化:
Entrepreneurship企业家精神
,Craftsmanship工匠精神
- Department 部门:
Board Of Directors董事会
- Entity 实体:
LLC(Limited Liability Company)有限责任公司
,Partnership合伙企业
,Public Company公众企业
,SME(Small and medium-sized enterprises)中小企业
,Conglomerate 集团
- Environment 环境:
EconomicEnvironment并购
,IndustryEnvironment行业环境
,CreditEnvironment信用环境
- Event 事件:
Acquisition并购
,Certification认证
,Meeting会议
,Resignation离职
,Repurchase回购
,Registration注册
,Lawsuit诉讼
,StockHoldingIncrease增持
- Information 信息:
Signal信号
,Speculative Information投机信息
,Asymmetric Information不对称信息
,Incentive激励
- Incentive 激励
- Institution 制度
- Person 个体:${\color{red}Consumer消费者}$,
Employee员工
,Entrepreneur企业家
,Manager经理
,Investor投资人
,Partner合伙人
,Shareholder股东
,Supervisor监管者
,Creditor债权人
,Auditor审计
,Beneficiary受益人
,Fiduciary受托人
,Craftsman工匠
- Market 市场:
Commodity货物
,Goods商品
,Market Structure市场结构
- Policy 政策:
AccountingPolicy会计政策
,DividendPolicy股利政策
- Project 项目
- Pragmatics 语用:
Promise承诺
- Risk 风险
- StakerHolder 利益相关者:
Bank银行
,Government政府
,Media媒体
,Public公众
,Rating Agency评级机构
- Scheme 图示:
Ponzi Scheme庞氏骗局
,ESOP员工持股
,DebtRestructuringPlan债务重组
- Strategy 战略:
Long Term Strategy长期策略
,Financial Strategy财务策略
- Tax 税法:
VAT(Value-Added Tax)增值税
,Consumption Tax消费税
,Personal Income Tax个人所得税
,Corporate Income Tax企业所得税
,RealEstate Tax房产税
,TransactionTax印花税
- Team 团队:
- Utility 效用:
Accounting Gym-Env 配套的智能会计强化学习虚拟环境
Check out: https://cpanlp.com
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
cpanlp-1.1.29.tar.gz
(54.4 kB
view hashes)
Built Distribution
cpanlp-1.1.29-py3-none-any.whl
(84.8 kB
view hashes)