semvec/pypi-packages huggingface dataset:
css-explore 1.1.0
Visualizations of a css parse tree
License: MIT
Requires Python: >=3.6.1

[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.css-explore?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=42&branchName=master)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/42/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=42&branchName=master)

css-explore
===========

This originally started as a tool to visualize the parse tree of a css
document, but more or less turned into a pretty printer.

The reason I made this project was to compare compilation outputs of various
implementations of scss in an effort to switch a codebase from one compiler
to another.

This uses:
- [reworkcss/css](https://github.com/reworkcss/css) for parsing
- [ekalinin/nodeenv](https://github.com/ekalinin/nodeenv) for bootstrapping node


## Usage

```console
$ css-format --help
usage: css-format [-h] filename

positional arguments:
  filename

optional arguments:
  -h, --help  show this help message and exit
```

Example run:

```console
$ echo 'body{color:red}' > test.css
$ css-format test.css
body {
    color: red;
}
```
clubhouse-lib 1.0.0
The unofficial Python client library for the Clubhouse API.
License: MIT
Keywords: clubhouse clubhouse-lib clubhouse-api

python-clubhouse-lib |PyPI Version| |Total Downloads|
=====================================================

The unofficial Python client library for the Clubhouse API.
-----------------------------------------------------------

python-clubhouse-lib is a Python wrapper around the Clubhouse API. It leverages
typed dicts to better provide utility to the programmer when dealing with
Clubhouse data. This library only provides the basic glue between your
application and Clubhouse, and it doesn't attempt to do anything more than that.

Installation
------------

::

    pip install clubhouse-lib

or

::

    git clone https://github.com/huntrar/python-clubhouse-lib
    cd clubhouse_lib
    python setup.py install

Examples
--------

Initializing the client

::

    import clubhouse_lib, os
    cc = clubhouse_lib.ClubhouseClient(os.environ.get('CLUBHOUSE_API_TOKEN'))

Listing Projects

::

    projects = cc.listProjects()

Listing Stories

::

    stories = cc.listStories(projects[0]['id'])

Update Story

::

    cc.updateStory(stories[0]['id'], name='Hello World!')

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

This project contains tooling for easily importing documentation from the
Clubhouse API and converting it into Python.

The API slurper allows you to convert snippets of documentation into JSON
objects, which can then be digested by the API builder which will build the
Python code.

We use Black for code formatting. Our flake8 linting configuration is included
in the repository.

.. |PyPI Version| image:: https://img.shields.io/pypi/v/clubhouse-lib.svg
   :target: https://pypi.python.org/pypi/clubhouse-lib
.. |Total Downloads| image:: https://pepy.tech/badge/clubhouse-lib
   :target: https://pepy.tech/project/clubhouse-lib


News
====

1.0.0
------

 - Publishing the unofficial Python client library for the Clubhouse API.
filepaths 0.0.8
Root-agnostic filepath generation
License: MIT
Requires Python: >=3
Keywords: filepath files directories

# Purpose
The filepaths module is designed to ease file path navigation in python scripts. It is particularly useful for iterating through many files in a directory.

# Use

## Installation
```python
pip install filepaths
```

## Example
```python
from filepaths import Root


paths = Root(__file__).paths()

for csv in paths.data.filepaths:
    pd.read_csv(csv)
```
## Options
    file=None: for default behavior pass in __file__
    depth=0: how many levels up up from __file__ to start the walk down
    ignore_hidden=True: whether or not to include hidden files/paths
    alt_path=False: if desired, specify an absolute path to another directory instead of file=__file__

# Description
The Root object stores information to build the strings for the desired directories and paths. The `paths()` method returns a nested dictionary of files, directories and the paths to them as values to the keys. If needed, `paths()` can be called again to return an updated dictionary.

The `.paths()` method returns an [addict dictionary](https://github.com/mewwts/addict). This dictionary inherits the standard dictionary class; it can be accessed with either `root[data][files]` or `root.data.files`. The keys of the dictionary are the names of the directories below the root directory, as well as `['files', 'dirs', 'path', filepaths']`. 

The keys `'files', 'dirs', 'path',` and `'filepaths'` are reserved for the dictionary: if there are directories with these names in any of the children directories, an error will be thrown.

The values to the mentioned keys are as follows:
* `root.example.path` returns the absolute path to the `example/` as a string.
* `root.example.dirs` returns a list of the child directories in `example/`.
* `root.example.files` returns a list of the filenames, as strings, for every file in `example/`.
* `root.example.filepaths` returns a list of the absolute paths, as strings, to every file in `example/`.