semvec/pypi-packages huggingface dataset:
pybgpasn 1.0.13
A small package for obtaining the Registered ISP name per ASN number
License: MIT
Requires Python: >=3.8,<4.0

### PYBGPASN

pybgpasn is a Python package for looking up Autonomous System Number (ASN) information. The package includes a database of ASNs and their corresponding provider names.


## Installation

You can install pybgpasn using pip:

```sh 
pip install pybgpasn
```


## Usage

### Basic Usage

To use pybgpasn, first create an instance of the ASNCatalog class:

```sh 
from pybgpasn import ASNCatalog

catalog = ASNCatalog()

```

The ASNCatalog class loads the ASN data from the package database file during initialization.

To look up an ASN's provider name, call the get_provider_name method:
```sh 
asn = 15169  # Google LLC
provider_name = catalog.get_provider_name(asn)
print(provider_name)  # prints "Google LLC"

```

### Private ASNs

If the provided ASN falls within the range of 64512 to 65535 (inclusive), the get_provider_name method will return "PRIVATE AS":

```sh 
asn = 64512  # Start of private ASN range
provider_name = catalog.get_provider_name(asn)
print(provider_name)  # prints "PRIVATE AS"

asn = 65535  # End of private ASN range
provider_name = catalog.get_provider_name(asn)
print(provider_name)  # prints "PRIVATE AS"

```

### Errors
If an invalid ASN is provided to the get_provider_name method, an error will be raised.

- If the provided ASN is not an integer, a TypeError will be raised.
- If the provided ASN is outside the valid range of 0 to 4294967295, a ValueError will be raised.

Here's an example of handling errors when looking up an ASN:
```sh 
from pybgpasn import ASNCatalog

catalog = ASNCatalog()

try:
    asn = "invalid"  # Not an integer
    provider_name = catalog.get_provider_name(asn)
except TypeError as e:
    print(f"Error: {e}")
    # Output: Error: ASN must be an integer

try:
    asn = -1  # Negative ASN
    provider_name = catalog.get_provider_name(asn)
except ValueError as e:
    print(f"Error: {e}")
    # Output: Error: Invalid ASN number

```

## License

pybgpasn is licensed under the MIT License. See the LICENSE file for more information.

## Acknowledgments
pybgpasn includes data from the Border Gateway Protocol (BGP) Autonomous System (AS) Numbers registry maintained by the Internet Assigned Numbers Authority (IANA).
trakt.py 5.0.0.0rc1
Python interface for the Trakt.tv API
License: MIT
Keywords: trakt.tv, api, client

trakt.py
========

.. image:: https://img.shields.io/pypi/v/trakt.py.svg?style=flat-square
   :target: https://pypi.python.org/pypi/trakt.py

.. image:: https://github.com/fuzeman/trakt.py/actions/workflows/test.yml/badge.svg
   :target: https://github.com/fuzeman/trakt.py/actions/workflows/test.yml

.. image:: https://img.shields.io/codeclimate/github/fuzeman/trakt.py.svg?style=flat-square
   :target: https://codeclimate.com/github/fuzeman/trakt.py

.. image:: https://img.shields.io/coveralls/fuzeman/trakt.py.svg?style=flat-square
   :target: https://coveralls.io/r/fuzeman/trakt.py?branch=master

Python interface for the Trakt.tv API.

Install
-------

.. code-block:: shell

    pip install trakt.py

Examples
--------

**Configure the client**

.. code-block:: python

    from trakt import Trakt


    Trakt.configuration.defaults.client(
        id='<client-id>',
        secret='<client-secret>'
    )


**Scrobble an episode**

.. code-block:: python

    show = {
        'title': 'Community',
        'year': 2009
    }

    episode = {
        'season': 5,
        'number': 13
    }

    # Send "start" event
    Trakt['scrobble'].start(
        show=show,
        episode=episode,

        progress=1
    )

    # [...] (watching episode)

    # Send "stop" event (scrobble)
    Trakt['scrobble'].stop(
        show=show,
        episode=episode,

        progress=93
    )

**Add a movie to your collection**

.. code-block:: python

    Trakt['sync/collection'].add({
        'movies': [
            {
                'title': "Twelve Monkeys",
                'year': 1995,

                'ids': {
                    'imdb': "tt0114746"
                }
            }
        ]
    })

**Retrieve shows that a user has watched**

.. code-block:: python

    # `watched` = {<key>: <Show>} dictionary
    watched = Trakt['sync/watched'].movies()

    for key, show in watched.items():
        print '%s (%s)' % (show.title, show.year)

License
-------

  The MIT License (MIT)

  Copyright (c) 2014 Dean Gardiner

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
dna-audit-tool 0.1
Data And Analytics Audit Tool
License: MIT
Requires Python: >=3.6

# **DNA AUDIT TOOL** #

DNA Audit tool helps you to check whether the application built on AWS is following the AWS Well-Architected framework by validating it against
various AWS services security requirements and the best practices. Generates report to validate the security requirements and security best practices.

# **AWS Hardening Standards & Best Practices** #

https://codaglobal.atlassian.net/l/cp/UP1BxJTr

# **AWS Tagging Standards** #

https://codaglobal.atlassian.net/l/cp/oj0Ngsdb

# **AWS Naming Standards** #

https://codaglobal.atlassian.net/l/cp/s99nYLEC

# **Audit tool setup** #

**The project basically uses boto client to connect to the aws services.**

1. Update the session credentials in the terminal.

2. Specify the region name if you need to perform the audit for services in a specific region by mentioning the region name as argument while running the program.

3. If no region is specified us-east-1 is taken as default region and audit checks are performed for the services in us-east-1.

4. If you need to check tags. Update the Config.Json file by mentioning the tags in the account tags provided.


# **Audit Tool Execution** #

Creating Virtual Environment
```
python3 -m venv venv
```

Activating the virtual environment
```
source venv/bin/activate
```

Installing the dependencies in the virtual environment
```
pip install -r requirements.txt
```
Run the following command
```
python3 src/main.py --region {region_name}
```

# **Test Cases Execution** #

```
nosetests
```

# **Final Report** #

The overall report is provided as a HTML document.

## sample report ##
![Scheme](assets/sample_report_base.png)
![Scheme](assets/sample_report.png)