semvec/pypi-packages huggingface dataset:
box-oauth 0.3.1
Box headless OAuth2 client

# Python OAuth2 Headless Client for Box

Python package to help connect with a Box API in cases where you don't have access to get the JWT file (better long term solution). In cases where you want to connect to the Box API through OAuth2 in a headless manner (without a browser) this can help

# Dependencies

This package depends on keyring, selenium, and boxsdk.  Since selenium runs in headless mode, you will need to make sure chromedriver is installed on your machine (this is done outside of pip unfortunately).

For instructions on how to do this, see [here](https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/)

# Usage

Login to Box through OAuth2
```
from box_auth.box_auth import BoxAuth

box = BoxAuth(
    client_id, # From Box developer console
    client_secret, # From box developer console
    box_username,
    box_password,
    user_email # This is used by your keyring
)

box.login() # Login

print(box.get_current_user()) # Double check that it worked
```

To get the [boxsdk](https://github.com/box/box-python-sdk) client, just run:
```
Client = box.get_client()
```

Follow the boxsdk documentation for how to use the client to access box

# Testing

You need the following variables in a config_test.py file (root directory) for the tests to work
```
client_id = # You can find this in the developer console, under your app configuration
client_secret =  # ""
box_username =
box_password
user_email # This is used by your keyring to store the access and refresh token
user # This is used by tests to check that you are the correct user
```

Then from the root directory, simply run
```
pytest
```

# Install

As a pip package
```
pip install box_oauth
```

or
```
python setup.py
```
tpclean 0.6.8.4
Custom library of functions for Data Science workflow automation

# tpclean

## Info
Home of the tpclean library
A Collection of handy functions that help with:
+ Pandas wrangling
+ Performing SQL Querries
+ Dealing With JSON files in Pandas

Fore more detailed information visit:
<a href = "https://medium.com/@pietrassyk/tpclean-6bbeba8bfe61?source=friends_link&sk=a580f7953818b8b0979b465b55d63db2"> https://medium.com/@pietrassyk </a>

## Getting started

### Install:
`!pip install tpclean --upgrade`

### Import:
`import tpclean.tpclean as tp`
vmtlib 0.0.1
A simple parser for Valve Material Type (.vmt) files.

# VMTlib

#### Description:

VMTlib is a simple parser for Valve Material Type (.vmt) files.

#### Note:
> 1. At the moment this package doesn't support attribute key-value pairs
> separated by tabs.
> 2. The formatting of the write function is very basic.

#### Basic Usage:
###### Import
```python
from vmtlib.vmt_file import VmtFile
```

###### Reading
```python
vmtf = VmtFile("example.vmt")
vmtf.read()
```
###### Writing
```python
vmtf.write("path/to/target.vmt")
```

###### Accessing Objects and Attributes
```python
# Attributes
basetexture = vmtf.shader.get("$baseTexture")
# or
basetexture = vmtf.shader.attributes["$baseTexture"]

# Objects
proxy_obj = vmtf.shader.get("Proxies")
#or
proxy_obj = vmtf.shader.childs["Proxies"]
```
###### Setting Attributes
```python
vmtf.shader.set("$basetexture", "new_texture")
```
###### Getting the structure as dictionary:
```python
d = vmtf.shader.dict
```
###### Creating a VMT file from a dictionary:
```python
d = {"shader": {"$basetexture": "brick", "Proxies": {"key": "val"}}}
vmtf = VmtFile()

vmtf.from_dict(d)
```
###### Getting the filename and directory:
```python
filename = vmtf.filename
dir = vmtf.directory
```
hytmf 0.1
Micro-testing framework for Hy.

This is a testing micro-framework for
`Hy <http://docs.hylang.org/en/stable/>`__.

To use it, wrap every ``assert`` in the ``test-case`` macro call like
this:

.. code:: hy

    (require [hytest [test-case]])

    (test-case (assert (= True True)))
    (test-case (assert (= False True)))

When you run the tests you will see the source code of each test and a
pass/fail indicator like this:

::

    $ hy testtest.hy 
    Test:   (assert (= True True))
    Pass:   ✔
    Test:   (assert (= False True))
    Traceback (most recent call last):
      File "/home/chrism/dev/hytmf/virtualenv/bin/hy", line 10, in <module>
        sys.exit(hy_main())
      File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 263, in run_path
        pkg_name=pkg_name, script_name=fname)
      File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 96, in _run_module_code
        mod_name, mod_spec, pkg_name, script_name)
      File "/home/chrism/.pyenv/versions/3.5.5/lib/python3.5/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/home/chrism/dev/hytmf/testtest.hy", line 5, in <module>
        (test-case (assert (= False True)))
    AssertionError