Communicate in Business with python
Project description
Communicate in Business with python
Example
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,unit="billion dollars",growth_rate=13%,year=2022,segment="North America")
sale2 = p.Sale(quarter="Q4",amount=34.5,unit="billion dollars",growth_rate=-8%,year=2022,segment="International")
sale3 = p.Sale(quarter="Q4",amount=21.4,unit="billion dollars",growth_rate=20%,year=2022,segment="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}")
Install & Import
Dependencies
- scipy
- numpy
- pandas
For detailed installation instructions, see the documentation.
pip install cpanlp
import cpanlp as p
Features
Accounting Item
gold_asset = p.Asset(account="gold", debit=1000,date="2023-01-01")
print(gold_asset.bubble)
Entrepreneur
john = p.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 = p.FinancialStrategy("huawei","defense",poison_pill(1000,0.1))
Accounting Language Decorator :
@prob(probability=0.7) #Estimate
@future_tense #Future Tense
side_effects=["financial instability","loss of reputation","decreased employee morale"]
@with_side_effects(side_effects=side_effects)#Side Effects
Accounting Exception :
if abs(percent_change) > 10:
raise AbnormalFluctuation(stock_name, percent_change)
Module:
Category | Module | Example |
---|---|---|
Accounting | Asset | Intangible Asset |
Liability | Financial Liability |
|
Equity | Share |
|
Income | Revenue |
|
Cashflow | Cashflow |
|
Audit | Audit | Audit Opinion |
Business | Main Business ,Capacity ,Business Model ,Value Chain ,Operation |
|
Control | Voting Power ,Commodity Control ,Significant Influence ,Beneficial Owner ,Interest |
|
${\color{purple}Decorator}$ | Estimate ,Tense ,Importance ,With Effects ,Validator |
|
Corporate Law | Contract | Lease |
Entity | LLC |
|
Provision | SayOnPay |
|
Department | Board Of Directors ,Supervisory Board |
|
Event | Acquisition ,Certification ,Grants ,Meeting ,Resignation ,Repurchase ,Personnel ,Registration ,Shares ,Lawsuit ,StockHoldingIncrease |
|
${\color{purple}Exception}$ | Abnormal Fluctuation ,Bubble ,Winner Curse |
|
Financial Management | Incentive | Promotion Incentive |
Scheme | Ponzi |
|
Institution | ||
Market | Commodity ,Goods |
|
Person | ${\color{red}Consumer}$,Employee ,Entrepreneur ,Manager ,Investor ,Partner ,Shareholder ,Supervisor ,Creditor ,Auditor ,Beneficiary ,Fiduciary ,Craftsman |
|
Policy | AccountingPolicy ,DividendPolicy |
|
Project | ||
Pragmatics | Promise |
|
Risk | ||
StakerHolder | Bank ,Government ,Media ,Public ,Rating Agency |
|
Strategy | Layout ,Long Term Strategy ,Financial Strategy |
|
Tax | VAT(Value-Added Tax) ,Consumption Tax ,Personal Income Tax ,Corporate Income Tax ,RealEstate Tax ,TransactionTax |
|
Team | ResearchTeam |
|
Utility |
Accounting Gym-Env
Check out: https://cpanlp.com
Python Narrative packages
- politicsnlp for Politics
- religionnlp for Religion
- lawnlp for Law
- economynlp for Economy
- cpanlp for Business
- militarynlp for Military
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.2.59.tar.gz
(90.6 kB
view hashes)
Built Distribution
cpanlp-1.2.59-py3-none-any.whl
(160.6 kB
view hashes)