semvec/pypi-packages huggingface dataset:
csv-jsonl 0.1.6
Leverage the built-in python csv module to write files in jsonl format
Requires Python: >=3.7
Keywords: python,jsonl,jsonlines,csv,bigquery

# csv-jsonl

A convenient module for writing a list of dictionaries or list of lists to a [`.jsonl`-formatted](https://jsonlines.org/) text file, suitable for ingestion by [BigQuery](https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json) and other services.

`csv-jsonl` is built on top of Python's built-in `csv` module. It allows you to specify a `fieldnames` list to add a bit of assurance. Otherwise, no schema-handling is offered.

# Why not Just Use csv Files?

If you are here asking that question, I'm guessing you have not spent exciting times attempting to clean up poorly-formatted `csv` files (I'm looking at you, Excel).

# Other Data Formats

Basically supports anything with a `__getitem__`, as well as dataclasses. See `test` for everything.


# Installation

`pip install csv-jsonl`

# Usage

## List of Dictonaries

```python
>>> from csv_jsonl import JSONLinesDictWriter
>>> l = [{"foo": "bar", "bat": 1}, {"foo": "bar", "bat": 2}]
>>> with open("foo.jsonl", "w", encoding="utf-8") as _fh:
...     writer = JSONLinesDictWriter(_fh)
...     writer.writerows(l)
...
>>> d = {"foo": "bar", "bat": 1}
>>> with open("bar.jsonl", "w", encoding="utf-8") as _fh:
...     writer = JSONLinesDictWriter(_fh)
...     writer.writerow(d)
...
>>> from collections import OrderedDict
>>> od = OrderedDict([('foo', 'bar'), ('bat', 1)])
>>> with open("qux.jsonl", "w", encoding="utf-8") as _fh:
...     writer = JSONLinesDictWriter(_fh)
...     writer.writerow(od)
...
>>> fieldnames = ["foo", "bar"] # keys = ["foo", "bat"] expect fail
>>> with open("baz.jsonl", "w", encoding="utf-8") as _fh:
...     writer = JSONLinesDictWriter(_fh, fieldnames=fieldnames)
...     writer.writerows(l)
...
Expect ValueError
```

## List of Lists

```python
        >>> from csv_jsonl import JSONLineslistWriter
        >>> l = zip(["foo", "bar", "bat"], range(3), range(3))
        >>> with open("foo.jsonl", "w", encoding="utf-8") as _fh:
        ...     writer = JSONLinesListWriter(_fh)
        ...     writer.writerows(l)
        ...
        >>> l = zip(["foo", "bar", "bat"], range(3), range(3))
        >>> with open("bar.jsonl", "w", encoding="utf-8") as _fh:
        ...     writer = JSONLinesDictWriter(_fh)
        ...     writer.writerow(next(l))
        ...
        >>> fieldnames = ["baz", "qux", "quux"]
        >>> l = zip(["foo", "bar", "bat"], range(3), range(3))
        >>> with open("foo.jsonl", "w", encoding="utf-8") as _fh:
        ...     writer = JSONLinesListWriter(_fh, fieldnames=fieldnames)
        ...     writer.writeheader()
        ...     writer.writerows(l)
        ...
```

[![pipeline status](https://gitlab.com/doug.shawhan/csv-jsonl/badges/main/pipeline.svg)](https://gitlab.com/doug.shawhan/csv-jsonl/-/commits/main)
[![Latest Release](https://gitlab.com/doug.shawhan/csv-jsonl/-/badges/release.svg)](https://gitlab.com/doug.shawhan/csv-jsonl/-/releases)
[![Downloads](https://pepy.tech/badge/csv-jsonl/month)](https://pepy.tech/project/csv-jsonl)
visepoint 0.12.86
"This Python module is for interacting with the visepoint API!"
Requires Python: >=3.9

___


<div style="width: full; text-align: center;">
    <img src="https://github.com/visepoint/visepoint-py/blob/main/banner.png">
</div>

___

> `visepoint` is a Python package designed to provide a simple interface to interact with the `visepoint` API and prompt models. It can be used to build applications that require AI-based text completion, code completion, and other natural language processing tasks.
___

<div style="width: full; text-align: center;">
    <br>
    <span style="font-weight: bold; font-size: 1.6em;">
        <span style="font-weight: 300">:</span> Installation <span style="font-weight: 300">:</span>
    </span>
    <br/> <br>
</div>

___ 
<br>

> `Optional: ` Install virtualenv:
```bash
[~$] - pip install virtualenv
```
<br>

> `Optional: ` Set virtual environment:
```bash
[~$] - virtualenv venv && source venv/bin/activate
```
<br>

> Install visepoint via pip:
```bash
[~$] - pip install visepoint
```

<br>

___

<div style="width: full; text-align: center;">
    <br>
    <span style="font-weight: bold; font-size: 1.6em;">
        <span style="font-weight: 300">:</span> Usage <span style="font-weight: 300">:</span>
    </span>
    <br/> <br>
</div>

___

<br>

> To get started with `visepoint`, you will need to obtain an API token from the visepoint [checkout](https://api.visepoint.net/new) creator **or** create a checkout session using the built-in `generate_checkout()` function provided.

```python
import visepoint

new_user = visepoint.UserCreate.generate_checkout()
print(new_user)
```

<br>

> `NOTE`: Upon completing checkout, you will be registered with visepoint and an email will be sent to you containing your api credentials.

> Once you have your API key, you can start using the package to interface with the `visepoint` API. Here's an example of how to use the `completion_create` function to prompt one of our text completion models.

<br>

### Synchronous method
```python
import visepoint

data = visepoint.Models.completion_create("visepoint", "your_api_token_here", "your_query_here")
```

### Asynchronous method
```python
import visepoint

data = await visepoint.Models.completion_create_async("visepoint", "your_api_token_here", "your_query_here")
```

<br>

___

<div style="width: full; text-align: center;">
    <br>
    <span style="font-weight: bold; font-size: 1.6em;">
        <span style="font-weight: 300">:</span> License <span style="font-weight: 300">:</span>
    </span>
    <br/> <br>
</div>

___ 

<br>

> `visepoint` is distributed under the `GNU General Public License v3.0` License. See the `LICENSE` file for more information.
yoyox 2023.3.16.0
A fork of yoyo that's designed to support the 3.10+ python versions, you probably shoul not use this
Requires Python: >=3.8

Yoyo database migrations
========================

![License](https://img.shields.io/github/license/marcosschroh/yoyo-database-migrations.svg)
[![codecov](https://codecov.io/gh/marcosschroh/yoyo-database-migrations/branch/master/graph/badge.svg)](https://codecov.io/gh/marcosschroh/yoyo-database-migrations)

This project has been clone from [ollyc/yoyo](https://bitbucket.org/ollyc/yoyo). Thanks Ollyc!!


Why this repository?

* To improve project documentation
* To fix bugs related to different python versions
* I had different issues on Mac but not on Linux, so fix them
* To add full support for Python 3.6/3.7 (annotations, async/io databases drivers)
* To add new Features
* To add full code coverage

Yoyo is a database schema migration tool. You write database migrations
as Python scripts containing raw SQL statements or Python functions.

Installation:
------------
```
pip install yoyo-database-migrations
```


Documentation:
--------------
https://marcosschroh.github.io/yoyo-database-migrations/



What does yoyo-migrations do?
-----------------------------

As your database application evolves, changes to the database schema may be
required. Yoyo lets you write migration scripts in Python containing
SQL statements to migrate your database schema to a new version.

A simple migration script looks like this:

```python
# file: migrations/0001.create-foo.py
from yoyo import step
step(
    "CREATE TABLE foo (id INT, bar VARCHAR(20), PRIMARY KEY (id))",
    "DROP TABLE foo",
)
```

Yoyo manages these database migration scripts,
gives you command line tools to apply and rollback migrations,
and manages dependencies between migrations.

Database support
----------------

PostgreSQL, MySQL and SQLite databases are supported.
ODBC and Oracle database backends are available (but unsupported).
 

Improvements
------------

* Command `yoyo showmigrations` added