cnpjinfo


Namecnpjinfo JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/juliansantosinfo/cnpjinfo.git
SummaryLibrary for obtaining cnpj information via scraping from the receitaws website.
upload_time2023-10-22 14:50:49
maintainer
docs_urlNone
authorJulian de Almeida Santos
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cnpjinfo

**cnpjinfo** is a library for obtaining cnpj information via scraping from the receitaws website.

## Features

- CNPJ information via receitaws website.

## Installation

- Run `pip install cnpjinfo`

## Exxemple

```python
from cnpjinfo import cnpjinfo

# For one CNPJ
info = cnpjinfo('12345678901234')
nome = info.get('nome')
tel = info.get('telefone')
print (f'Nome: {nome}, Tel: {tel}'))

# For CNPJ list
cnpj_list = [ "05720854000166", "00623904000173", "15436940000103" ]
result = cnpjinfo_list(cnpj_list)
for cnpj in result:
    info = cnpjinfo('12345678901234')
    nome = info.get('nome')
    tel = info.get('telefone')
    print (f'Nome: {nome}, Tel: {tel}'))
```

### console output

```bash
foo@bar:~$ ./myscript.py
Nome: COMPANY NAME., Tel: (11) 1111-1111
foo@bar:~$ 
```

## Upgrade

```bash
- Run `pip install cnpjinfo --upgrade`
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/juliansantosinfo/cnpjinfo.git",
    "name": "cnpjinfo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Julian de Almeida Santos",
    "author_email": "julian.santos.info@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1c/d0/01edcf4ca5bed0e9f68664cc82a4f402c5c6197a8c49983b2980d1fe9f11/cnpjinfo-0.0.3.tar.gz",
    "platform": null,
    "description": "# cnpjinfo\n\n**cnpjinfo** is a library for obtaining cnpj information via scraping from the receitaws website.\n\n## Features\n\n- CNPJ information via receitaws website.\n\n## Installation\n\n- Run `pip install cnpjinfo`\n\n## Exxemple\n\n```python\nfrom cnpjinfo import cnpjinfo\n\n# For one CNPJ\ninfo = cnpjinfo('12345678901234')\nnome = info.get('nome')\ntel = info.get('telefone')\nprint (f'Nome: {nome}, Tel: {tel}'))\n\n# For CNPJ list\ncnpj_list = [ \"05720854000166\", \"00623904000173\", \"15436940000103\" ]\nresult = cnpjinfo_list(cnpj_list)\nfor cnpj in result:\n    info = cnpjinfo('12345678901234')\n    nome = info.get('nome')\n    tel = info.get('telefone')\n    print (f'Nome: {nome}, Tel: {tel}'))\n```\n\n### console output\n\n```bash\nfoo@bar:~$ ./myscript.py\nNome: COMPANY NAME., Tel: (11) 1111-1111\nfoo@bar:~$ \n```\n\n## Upgrade\n\n```bash\n- Run `pip install cnpjinfo --upgrade`\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library for obtaining cnpj information via scraping from the receitaws website.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/juliansantosinfo/cnpjinfo.git",
        "Source": "https://github.com/juliansantosinfo/cnpjinfo.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc3d0f17f890574cd63405e3b97b21ce51a52ae8914d7b83464abc5000223750",
                "md5": "7efee3c3c0db67eeda832c9086bd5c43",
                "sha256": "ecb7ae45ad0ae34b38b07ed54af314aa67c4274f6e8b30dd18e4d523066df38a"
            },
            "downloads": -1,
            "filename": "cnpjinfo-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7efee3c3c0db67eeda832c9086bd5c43",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3457,
            "upload_time": "2023-10-22T14:50:48",
            "upload_time_iso_8601": "2023-10-22T14:50:48.262330Z",
            "url": "https://files.pythonhosted.org/packages/dc/3d/0f17f890574cd63405e3b97b21ce51a52ae8914d7b83464abc5000223750/cnpjinfo-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1cd001edcf4ca5bed0e9f68664cc82a4f402c5c6197a8c49983b2980d1fe9f11",
                "md5": "1c45dcb1599e6af149bc15cb9c870991",
                "sha256": "0db2d6af716b8cbb00a5514ec6f5a7acd453cefc8a93451316ee94e5b455d8d9"
            },
            "downloads": -1,
            "filename": "cnpjinfo-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1c45dcb1599e6af149bc15cb9c870991",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3313,
            "upload_time": "2023-10-22T14:50:49",
            "upload_time_iso_8601": "2023-10-22T14:50:49.999460Z",
            "url": "https://files.pythonhosted.org/packages/1c/d0/01edcf4ca5bed0e9f68664cc82a4f402c5c6197a8c49983b2980d1fe9f11/cnpjinfo-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-22 14:50:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "juliansantosinfo",
    "github_project": "cnpjinfo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cnpjinfo"
}
        
Elapsed time: 0.13398s