cpanlp


Namecpanlp JSON
Version 1.2.75 PyPI version JSON
download
home_pagehttps://cpanlp.com
SummaryCommunicate in Business with python
upload_time2023-03-12 17:59:58
maintainer
docs_urlNone
authorDraco Deng
requires_python
licenseMIT
keywords machine language python accounting cpa audit intelligent accounting linguistic turn linguistic intelligent audit natural language processing machine learning finance certified public accountant big four
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

## Communicate in Business with python

 <img src="https://raw.githubusercontent.com/accounting-intelligent-ai/cpanlp/main/cpanlp.png" width = "220" height = "100" 
alt="logo" align=center />

<br/>

[![PyPI - Python Version](https://img.shields.io/static/v1?label=pypi&message=v1.2.51&color=blue)](https://pypi.org/project/cpanlp/)
[![Downloads](https://static.pepy.tech/badge/cpanlp/week)](https://pepy.tech/project/cpanlp)


## 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.
```python
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](https://cpanlp.com/documentation).
```python
pip install cpanlp
import cpanlp as p
```

## Features
```python
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:
|  Category   |  Module   | Example  |
|  :----: |  :----:  | :----:  |
| **Accounting**  | Asset|`Intangible Asset`|
| | Liability |`Financial Liability`|
| | Equity|`Share`|
| | Income|`Revenue`|
| | Cashflow |`Cashflow`|
| | Policy |`DividendPolicy`|
| | Report |`IncomeSmoothing`|
| **Audit**  | Audit|`Audit Opinion`|
| **Business**  | `Main Business`,`Capacity`,`Business Model`,`Value Chain`,`Operation` |
| ${\color{purple}Decorator}$| `Estimate` ,`Tense`,`Importance`,`With Effects`,`Validator`|
| **Corporate Law**  | Contract|`Lease`|
|  | Control|`Voting Power`|
|  | 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` |
| **Project**  |  |
| **Pragmatics**  | `Promise` |
| **Risk** | |
| **StakerHolder**  | `Bank`,`Government`,`Media`,`Public`,`Rating Agency` |
| **Strategy**  | `Layout`,`Long Term Strategy`,`Financial Strategy` |
| **Tax**  | Tax on Behavior |`TransactionTax`|
| |Tax on Income |`PersonalIncomeTax`|
| |Tax on Property |`RealEstateTax`|
| |Tax on Turnover |`VAT`|
| **Team**  | `ResearchTeam `|
| **Utility**  | |

## Accounting Gym-Env
<a href="https://pypi.org/project/cpagym/">
<img src="https://raw.githubusercontent.com/accounting-intelligent-ai/cpagym/main/cpagym.png" width = "200" height = "200" alt="logo" align=center />
</a>

Check out: https://cpanlp.com

## Python Narrative packages
- [politicsnlp](https://pypi.org/project/politicsnlp/) for Politics
- [religionnlp](https://pypi.org/project/religionnlp/) for Religion
- [lawnlp](https://pypi.org/project/lawnlp/) for Law
- [economynlp](https://pypi.org/project/economynlp/) for Economy
- [cpanlp](https://pypi.org/project/cpanlp/) for Business
- [militarynlp](https://pypi.org/project/militarynlp/) for Military

            

Raw data

            {
    "_id": null,
    "home_page": "https://cpanlp.com",
    "name": "cpanlp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "machine language,python,accounting,cpa,audit,intelligent accounting,linguistic turn,linguistic,intelligent audit,natural language processing,machine learning,finance,certified public accountant,big four",
    "author": "Draco Deng",
    "author_email": "dracodeng6@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/cb/65/f247b9157f5b873827aa5bbb95fb2ae85424f6460a12c74492bf4652cc52/cpanlp-1.2.75.tar.gz",
    "platform": null,
    "description": "\n\n## Communicate in Business with python\n\n <img src=\"https://raw.githubusercontent.com/accounting-intelligent-ai/cpanlp/main/cpanlp.png\" width = \"220\" height = \"100\" \nalt=\"logo\" align=center />\n\n<br/>\n\n[![PyPI - Python Version](https://img.shields.io/static/v1?label=pypi&message=v1.2.51&color=blue)](https://pypi.org/project/cpanlp/)\n[![Downloads](https://static.pepy.tech/badge/cpanlp/week)](https://pepy.tech/project/cpanlp)\n\n\n## Example\nsales increased 12% compared with fourth quarter 2021:\n  - North America segment sales increased 13% year-over-year to $93.4 billion, or increased 14% excluding changes in foreign exchange rates.\n  - International segment sales decreased 8% year-over-year to $34.5 billion, or increased 5% excluding changes in foreign exchange rates.\n  - AWS segment sales increased 20% year-over-year to $21.4 billion.\n```python\nsale1 = p.Sale(quarter=\"Q4\",amount=93.4,unit=\"billion dollars\",growth_rate=13%,year=2022,segment=\"North America\")\nsale2 = p.Sale(quarter=\"Q4\",amount=34.5,unit=\"billion dollars\",growth_rate=-8%,year=2022,segment=\"International\")\nsale3 = p.Sale(quarter=\"Q4\",amount=21.4,unit=\"billion dollars\",growth_rate=20%,year=2022,segment=\"AWS\")\nsales = [sale1, sale2, sale3]\ntotal_sales = 0\nfor s in sales:\n    total_sales += s.amount\n    print(f\"Segment: {s.segment}, Sale: {s.amount}\")\n\nprint(f\"Total Sales: {total_sales}\")\n```\n\n## Install & Import\n#### Dependencies\n- scipy \n- numpy\n- pandas\n  \nFor detailed installation instructions, see the\n[documentation](https://cpanlp.com/documentation).\n```python\npip install cpanlp\nimport cpanlp as p\n```\n\n## Features\n```python\nimport cpanlp as p\n\n# Keyword Analysis \n\nkeywordanalysis = Keyword()\ninstances = keywordanalysis.analyze(text=\"Our concentrate operations typically generate net operating revenues by selling concentrates, syrups and certain finished beverages to authorized bottling operations\")\n# Accounting Item\n\ngold_asset = p.Asset(account=\"gold\", debit=1000,date=\"2023-01-01\")\nprint(gold_asset.bubble)\n\n# Strategy\n\nhuawei = p.FinancialStrategy(\"huawei\",\"defense\",poison_pill(1000,0.1))\n\n# Language Decorator \n\nside_effects=[\"financial instability\",\n               \"loss of reputation\",\n               \"decreased employee morale\"]\n@with_side_effects(side_effects=side_effects)\nfunc()\n\n# Accounting Exception \n\nif abs(percent_change) > 10:\n  raise AbnormalFluctuation(stock_name, percent_change)\n```\n\n## Module:\n|  Category   |  Module   | Example  |\n|  :----: |  :----:  | :----:  |\n| **Accounting**  | Asset|`Intangible Asset`|\n| | Liability |`Financial Liability`|\n| | Equity|`Share`|\n| | Income|`Revenue`|\n| | Cashflow |`Cashflow`|\n| | Policy |`DividendPolicy`|\n| | Report |`IncomeSmoothing`|\n| **Audit**  | Audit|`Audit Opinion`|\n| **Business**  | `Main Business`\uff0c`Capacity`\uff0c`Business Model`\uff0c`Value Chain`\uff0c`Operation` |\n| ${\\color{purple}Decorator}$| `Estimate` \uff0c`Tense`\uff0c`Importance`\uff0c`With Effects`\uff0c`Validator`|\n| **Corporate Law**  | Contract|`Lease`|\n|  | Control|`Voting Power`|\n|  | Entity|`LLC`|\n|  | Provision|`SayOnPay`|\n| **Department**  | `Board Of Directors` \uff0c`Supervisory Board`|\n| **Event**  | `Acquisition`\uff0c`Certification`\uff0c`Grants`\uff0c`Meeting`\uff0c`Resignation`\uff0c`Repurchase`\uff0c`Personnel`\uff0c`Registration`\uff0c`Shares`\uff0c`Lawsuit`\uff0c`StockHoldingIncrease` |\n| ${\\color{purple}Exception}$| `Abnormal Fluctuation`\uff0c`Bubble`\uff0c`Winner Curse`|\n| **Financial Management**  | Incentive|`Promotion Incentive`|\n| | Scheme|`Ponzi`|\n| **Institution**  |  |\n| **Market**  | `Commodity`\uff0c`Goods`|\n| **Person**  | ${\\color{red}Consumer}$\uff0c`Employee`\uff0c`Entrepreneur`\uff0c`Manager`\uff0c`Investor`\uff0c`Partner`\uff0c`Shareholder`\uff0c`Supervisor`\uff0c`Creditor`\uff0c`Auditor`\uff0c`Beneficiary`\uff0c`Fiduciary`\uff0c`Craftsman` |\n| **Project**  |  |\n| **Pragmatics**  | `Promise` |\n| **Risk** | |\n| **StakerHolder**  | `Bank`\uff0c`Government`\uff0c`Media`\uff0c`Public`\uff0c`Rating Agency` |\n| **Strategy**  | `Layout`\uff0c`Long Term Strategy`\uff0c`Financial Strategy` |\n| **Tax**  | Tax on Behavior |`TransactionTax`|\n| |Tax on Income |`PersonalIncomeTax`|\n| |Tax on Property |`RealEstateTax`|\n| |Tax on Turnover |`VAT`|\n| **Team**  | `ResearchTeam `|\n| **Utility**  | |\n\n## Accounting Gym-Env\n<a href=\"https://pypi.org/project/cpagym/\">\n<img src=\"https://raw.githubusercontent.com/accounting-intelligent-ai/cpagym/main/cpagym.png\" width = \"200\" height = \"200\" alt=\"logo\" align=center />\n</a>\n\nCheck out: https://cpanlp.com\n\n## Python Narrative packages\n- [politicsnlp](https://pypi.org/project/politicsnlp/) for Politics\n- [religionnlp](https://pypi.org/project/religionnlp/) for Religion\n- [lawnlp](https://pypi.org/project/lawnlp/) for Law\n- [economynlp](https://pypi.org/project/economynlp/) for Economy\n- [cpanlp](https://pypi.org/project/cpanlp/) for Business\n- [militarynlp](https://pypi.org/project/militarynlp/) for Military\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Communicate in Business with python",
    "version": "1.2.75",
    "split_keywords": [
        "machine language",
        "python",
        "accounting",
        "cpa",
        "audit",
        "intelligent accounting",
        "linguistic turn",
        "linguistic",
        "intelligent audit",
        "natural language processing",
        "machine learning",
        "finance",
        "certified public accountant",
        "big four"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cae454ad5f0ef0c763f903a1d14ddd7d7d6710a8beff1852bf99ed767bdff5a9",
                "md5": "6083a1696f873e3381e83a73dbeca312",
                "sha256": "e7f8c35c333af3dd309f6f8246ec6780cc92d8fea33e5dce25be922117e20de6"
            },
            "downloads": -1,
            "filename": "cpanlp-1.2.75-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6083a1696f873e3381e83a73dbeca312",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 221282,
            "upload_time": "2023-03-12T17:59:55",
            "upload_time_iso_8601": "2023-03-12T17:59:55.650680Z",
            "url": "https://files.pythonhosted.org/packages/ca/e4/54ad5f0ef0c763f903a1d14ddd7d7d6710a8beff1852bf99ed767bdff5a9/cpanlp-1.2.75-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb65f247b9157f5b873827aa5bbb95fb2ae85424f6460a12c74492bf4652cc52",
                "md5": "be78d198b571b10f42ef8aa939530c10",
                "sha256": "330c40a552ff192fb6de67c8bb946c0bbfa5aa15b35ea4952a0c6b5e961efcae"
            },
            "downloads": -1,
            "filename": "cpanlp-1.2.75.tar.gz",
            "has_sig": false,
            "md5_digest": "be78d198b571b10f42ef8aa939530c10",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 126609,
            "upload_time": "2023-03-12T17:59:58",
            "upload_time_iso_8601": "2023-03-12T17:59:58.264488Z",
            "url": "https://files.pythonhosted.org/packages/cb/65/f247b9157f5b873827aa5bbb95fb2ae85424f6460a12c74492bf4652cc52/cpanlp-1.2.75.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-12 17:59:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "cpanlp"
}
        
Elapsed time: 0.11531s