semvec/pypi-packages huggingface dataset:
ciscoglass 0.1.5
Wrapper/SDK for Cisco Glass Apps

# CiscoGlass Python SDK

This is a python library to help simplify the process of building python apps for Cisco Glass.

This provides an interface which abstracts away most of the repetitive code needed.

Here is a sample below:
```python
from ciscoglass import GlassApp
import requests
import time


class SampleRequest(GlassApp):
    def run(self):

        endpoint = self.get_devices("TEST")[0]
        resp = requests.get(f"https://{endpoint.host}/json", auth=(endpoint.username, endpoint.password))
        with self.file("log.txt", 'w') as f:
            f.writelines([
                f"Log Time: {time.strftime('%Y%m%d-%H%M%S')}\n",
                resp.text + '\n'
            ])
            print("Ran successfully, please check the log for more details!")


if __name__ == "__main__":
    SampleRequest().run()
```

It provides a robust file access method which has functionality such as copy on write if in case you want to modify an input file, without you manually having to copy the files to output location.

Also, there is no need to remember the locations of input/output files, calling the API for device list, etc.

Further, it has a CLI interface to get you started with a default template for an app, including the Dockerfile and a sample JSON spec created for you.
You can run the command as such:
```shell script
python -m ciscoglass --help
python -m ciscoglass create my_first_glass_app
```
export-execl-data 0.0.7
PyPI Tutorial
Requires Python: >=3

```shell script
pip3 install export-execl-data
```


```python
from export_execl_data import crate_execl_data
sql_config = {
    # 数据源
    'mysql_config': {
        'host': 'xxxx',
        'user': 'xxxxx',
        'password': 'xxxx',
        'database': 'xxxx',
        'port': 3306,
        'charset': 'utf8',
        'autocommit': True
    },
    'file_name': 'xxx曲线.xlsx',      # 文件名字
    'sheet_list': [
        {
            'status': 1,                # 是否有效，0：该sql不运行
            'sheet': '月',               # sheet 名字
            'sql': """                  # 运行的sql
                SELECT * FROM xxx;
            """
        },
        {
            'status': 1,
            'sheet': '周',
            'sql': """
                SELECT * FROM xxx;
            """
        }
    ]
}

crate_execl_data.CrateExeclData(config_data=sql_config).execute()

```
py-scfg 0.1.2
Module to read scfg formatted configuration files.

py-scfg
=======

A Python module to parse `scfg <https://git.sr.ht/~emersion/scfg>`__
formatted configuration files.

It's a simple port of the Go module
`go-scfg <https://git.sr.ht/~emersion/go-scfg>`__.

**Note:** Not to be confused with
`pyscfg <https://pypi.org/project/pyscfg/>`__ which appears to parse
configurations into and out of YAML files.

Usage
-----

Very simple:

::

    import scfg

    conf = scfg.Config("~/your_config.conf")
    conf.load()
    train = conf.get("train")
    train_models = train.get_all("model")
    trail_models[0].get("lines-served")

Contributing
------------

We accept patches submitted via ``hg email`` which is the ``patchbomb``
extension included with Mercurial.

Please see our `contributing
document <https://man.code.netlandish.com/contributing.md>`__ for more
information.

The mailing list where you submit your patches is
``~petersanchez/public-inbox@lists.code.netlandish.com``. You can also
view the archives on the web here:

https://lists.code.netlandish.com/~petersanchez/public-inbox

To quickly setup your clone of ``py-scfg`` to submit to the mailing list
just edit your ``.hg/hgrc`` file and add the following:

::

    [email]
    to = ~petersanchez/public-inbox@lists.code.netlandish.com

    [patchbomb]
    flagtemplate = "py-scfg"

    [diff]
    git = 1

We have more information on the topic here:

-  `Contributing <https://man.code.netlandish.com/contributing.md>`__
-  `Using email with
   Mercurial <https://man.code.netlandish.com/hg/email.md>`__
-  `Mailing list
   etiquette <https://man.code.netlandish.com/lists/etiquette.md>`__

Copyright & License
-------------------

All documentation, libraries, and sample code are Copyright Peter
Sanchez <pjs@petersanchez.com>. The library and sample code are made
available to you under the terms of the BSD license which is contained
in the included file, ``LICENSE``.

Commercial Support
------------------

This software, and lots of other software like it, has been built in
support of many of Netlandish's own projects, and the projects of our
clients. We would love to help you on your next project so get in touch
by dropping us a note at hello@netlandish.com.