Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cpanlp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpanlp

Communicate in Business with python

  • 1.2.75
  • PyPI
  • Socket score

Maintainers
1

Communicate in Business with python

logo


PyPI - Python Version Downloads

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

import cpanlp as p

# Keyword Analysis 

keywordanalysis = Keyword()
instances = keywordanalysis.analyze(text="Our concentrate operations typically generate net operating revenues by selling concentrates, syrups and certain finished beverages to authorized bottling operations")
# Accounting Item

gold_asset = p.Asset(account="gold", debit=1000,date="2023-01-01")
print(gold_asset.bubble)

# Strategy

huawei = p.FinancialStrategy("huawei","defense",poison_pill(1000,0.1))

# Language Decorator 

side_effects=["financial instability",
               "loss of reputation",
               "decreased employee morale"]
@with_side_effects(side_effects=side_effects)
func()

# Accounting Exception 

if abs(percent_change) > 10:
  raise AbnormalFluctuation(stock_name, percent_change)

Module:

CategoryModuleExample
AccountingAssetIntangible Asset
LiabilityFinancial Liability
EquityShare
IncomeRevenue
CashflowCashflow
PolicyDividendPolicy
ReportIncomeSmoothing
AuditAuditAudit Opinion
BusinessMain BusinessCapacityBusiness ModelValue ChainOperation
${\color{purple}Decorator}$EstimateTenseImportanceWith EffectsValidator
Corporate LawContractLease
ControlVoting Power
EntityLLC
ProvisionSayOnPay
DepartmentBoard Of DirectorsSupervisory Board
EventAcquisitionCertificationGrantsMeetingResignationRepurchasePersonnelRegistrationSharesLawsuitStockHoldingIncrease
${\color{purple}Exception}$Abnormal FluctuationBubbleWinner Curse
Financial ManagementIncentivePromotion Incentive
SchemePonzi
Institution
MarketCommodityGoods
Person${\color{red}Consumer}$,EmployeeEntrepreneurManagerInvestorPartnerShareholderSupervisorCreditorAuditorBeneficiaryFiduciaryCraftsman
Project
PragmaticsPromise
Risk
StakerHolderBankGovernmentMediaPublicRating Agency
StrategyLayoutLong Term StrategyFinancial Strategy
TaxTax on BehaviorTransactionTax
Tax on IncomePersonalIncomeTax
Tax on PropertyRealEstateTax
Tax on TurnoverVAT
TeamResearchTeam
Utility

Accounting Gym-Env

logo

Check out: https://cpanlp.com

Python Narrative packages

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc