semvec/pypi-packages huggingface dataset:
edr-accessor 0.1.7
A pandas DataFrame accessor for accessing Enterprise Data Repository (EDR) tables with Spark.
License: MIT

# EDR Accessor - Pandas Extension to access the Enterprise Data Repository (EDR) with Spark

The EDR Accessor is a custom pandas DataFrame accessor that simplifies the interaction with Spark, making it easy to list databases, tables, import tables, and write to Delta Lake tables.

## Features

- List all Spark databases and tables
- Import Spark tables into a pandas DataFrame
- Retrieve table row counts
- Write pandas DataFrame to Delta Lake tables

## Installation

To install EDR Accessor, simply use pip:

```bash
pip install edr-accessor
```

## Usage

After installation, you can use the extension by accessing the `.edr` attribute on your pandas DataFrame.

```python
import pandas as pd
import edr_accessor

# Create an empty DataFrame
df = pd.DataFrame()

# List all databases
databases = df.edr.list_databases()

# List all tables in a specific database
tables = df.edr.list_tables('my_database')

# Import a table from Spark
df.edr.import_table('my_table', database='my_database')

# Get row counts for tables in a database
row_counts = df.edr.table_rowcounts(database='my_database')

# Write DataFrame to a Delta Lake table
df.edr.to_delta_table('my_delta_table', 'my_container', 'my_storage_account')
```

## Requirements

* Pandas
* PySpark

## Contributing

Contributions welcome! Feel free to submit a pull request.

## License

This project is licensed under the MIT License - see the LICENSE file for details.
honesty 0.3.0b1
Double check sdist/bdist on pypi
License: MIT
Requires Python: >=3.8

# Honesty

There's a long tail of people doing interesting/sketchy things to packages on
pypi.  Most aren't malicious, but this project gives you an easy way to check
for some of the obvious ways that packages might be tampered with.

# Usage

```
honesty list <package name>
honesty check <package name>[==version|==*] [--verbose]
honesty download <package name>[==version|==*] [--dest=some-path/]
honesty extract <package name>[==version|==*] [--dest=some-path/]
honesty license <package name>[==version|==*]

(provisional)
honesty ispep517 <package name>[==version|==*]
honesty native <package name>[==version|==*]
honesty age <package name>[==version|==*]
honesty deps [--flat|--pick] <package name>[==version|==*]
```

It will store a package cache, using the normal appdirs package to pick a
location (on Linux, this defaults to `~/.cache/honesty/pypi` but, you can
override with `XDG_CACHE_HOME` or `HONESTY_CACHE` environment variables).

If you have a local bandersnatch, specify `HONESTY_INDEX_URL` to your `/simple/`
url.  It also must support `/pypi/<package>/json` or pass `--nouse-json` to the
commands that support it.


# Exit Status of 'check'

These are bit flags to make sense when there are multiple problems.  If you pass
`*` for version, they are or'd together.

```
0   if only sdist or everything matches
1   if only bdist
2   (reserved for future "extraction error")
4   some .py from bdist not in sdist
8   some .py files present with same name but different hash in sdist (common
    when using versioneer or 2to3)
```


# API

The user-facing API is intended to be used to analyze metadata and download
sdists.  It is somewhat provisional, in that the exceptions raised are not
well-defined.

```
from honesty.cache import Cache
from honesty.releases import async_parse_index
from honesty.api import async_download_one
async def foo(pkgname, pkgversion):
  with Cache() as c:
      pkg = await async_parse_index(pkgname, c, use_json=True)
      path = async_download_one(pkg, pkgversion, cache=c)
```


# License

Honesty is copyright [Tim Hatch](http://timhatch.com/), and licensed under
the MIT license.  I am providing code in this repository to you under an open
source license.  This is my personal repository; the license you receive to
my code is from me and not from my employer. See the `LICENSE` file for details.