semvec/pypi-packages huggingface dataset:
types-pysftp 0.2.17.20250805
Typing stubs for pysftp
Requires Python: >=3.9

## Typing stubs for pysftp

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`pysftp`](https://bitbucket.org/dundeemt/pysftp) package. It can be used by type checkers
to check code that uses `pysftp`. This version of
`types-pysftp` aims to provide accurate annotations for
`pysftp==0.2.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/pysftp`](https://github.com/python/typeshed/tree/main/stubs/pysftp)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`084742b431aadc6f368313971a39b5dab5623e47`](https://github.com/python/typeshed/commit/084742b431aadc6f368313971a39b5dab5623e47).
pynetcom 0.1.6
Library for Huawei, Nokia network device API interactions
Requires Python: >=3.7
Keywords: networking huawei nokia rest cli netconf

# PyNetCom

`pynetcom` is a library designed for connecting to network switches and routers from various vendors via REST API and CLI, as well as for interacting with management systems such as Huawei NCE and Nokia NSP. The library allows you to execute commands, retrieve inventory data, and obtain alarm lists.

## Features

- Connect to network devices using REST API and CLI.
- Interact with management systems (e.g., Huawei NCE, Nokia NSP).
- Retrieve inventory data.
- Obtain alarm lists.
- Convenient token management for authorization.
- Automatic token refresh upon expiration.

## Installation

You can install the package using `pip`:

```bash
pip install pynetcom
```

## Development

To set up the development environment:

```bash
# Install development dependencies
pip install setuptools wheel twine

# Install the package locally
pip install .

# Create wheel and source 
pip install build twine
python -m build

```

## Running Examples

To run examples, follow these steps:

1. Clone the repository:

    ```bash
    git clone https://github.com/ddarth/pynetcom.git
    cd pynetcom
    ```

2. Set up a virtual environment:

    ```bash
    python -m venv .venv
    ```

3. Activate the virtual environment:

    - On Windows:

        ```bash
        .venv\Scripts\activate
        ```

    - On macOS/Linux:

        ```bash
        source .venv/bin/activate
        ```

4. Add your configuration data to config.py:
    ```bash
    cp examples/config.example.py examples/config.py
    vi examples/config.py
    ```
    ```python
    API_NCE_USER =  "your_nce_api_user"
    API_NCE_PASS = "your_nce_password"
    API_NCE_HOST = "https://your_nce_hostip:26335"

    API_NSP_USER =  "your_nsp_api_user"
    API_NSP_PASS = "your_nsp_password"
    API_NSP_HOST = "https://your_nsp_host"

    NETCONF_HOST = "192.168.0.1"
    NETCONF_PORT = 830 # 22 for huawei
    NETCONF_USER = "your_netconf_user"
    NETCONF_PASSWORD = "yout_netconf_password"
    ```

5. Run an example script:

    ```bash
    python examples/huawei_nce.py
    ```


## Usage

Here is an example of how to use the library:

```python
from pynetcom import RestNCE

# Initialize connection to NCE
nce = RestNCE(API_NCE_HOST, API_NCE_USER, API_NCE_PASS)

# Get subnets from NCE
nce.send_request("/restconf/v2/data/huawei-nce-resource-inventory:subnets")
items = nce.get_data()
print(items)
```
For additional info see examples/ folder

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Warning
Library use nsp_token.txt and nce_token.txt to store tokens.
Make sure that your have write permission to it.
asyncio 4.0.0
Deprecated backport of asyncio; use the stdlib package instead
Requires Python: >=3.4

# asyncio (obsolete backport)

This package once provided a backport of the `asyncio` module for Python
versions prior to 3.4. The `asyncio` module has shipped with the Python
standard library since Python 3.4 and this separate distribution is no longer
needed.

**Do not install this package.** Use the implementation that comes with
Python instead:

https://docs.python.org/3/library/asyncio.html

This release contains no code and exists only to prevent accidental
installation of outdated backports.