semvec/pypi-packages huggingface dataset:
csv-2-mongo 0.0.2
Import a CSV to MongoDB.

# [csv-2-mongo](https://pypi.org/project/csv-2-mongo/)

[![PyPi release](https://img.shields.io/pypi/v/csv-2-mongo.svg)](https://pypi.org/project/csv-2-mongo/)
[![Downloads](https://pepy.tech/badge/csv-2-mongo)](https://pepy.tech/project/csv-2-mongo)

Import a CSV to MongoDB using Python ��.

## Installation

```bash
$ pip install csv-2-mongo
```

## Usage

```text

Usage: csv_2_mongo.py [OPTIONS] FILE

  Import a csv FILE to MongoDB

Options:
  -h, --help             Show this message and exit.
  -v, --version          Show the version and exit.
  -d, --database name    Database name.  [default: test]
  -c, --collection name  Collection name.  [default: test]
  -H, --host host        Host name.  [default: 0.0.0.0]
  -p, --port port        Port number.  [default: 27017]
  -t, --timeout sec      Connection timeout (seconds).  [default: 5]
  -f, --force            Overwrite collection if exists.
  -y, --yes              Automatic yes to prompts.

```

> Note: CSV headers are **required** to correctly correlate MongoDB `fields` to CSV `fields`. 

## Examples

Import `mammals.csv` to a `mammals` collection in the  `animals` database:

```bash
$ csv-2-mongo -d animals -c mammals ./mammals.csv
```

```txt
....................................
Connecting to 0.0.0.0:27017
....................................

Import data.csv to database=animals collection=mammals [y/N]? y
Import complete!
```

Import `mammals.csv` to a `mammals` collection in the  `animals` database **overwriting the collection if it exists**:

> Note: the `-f, --force` flag will overwrite the collection without a prompt. If the flag is omitted, `csv-2-mongo` will prompt you before operations with potential data loss.

```bash
$ csv-2-mongo -f -d animals -c mammals ./mammals.csv
```

```txt
....................................
Connecting to 0.0.0.0:27017
....................................

Import data.csv to database=animals collection=mammals [y/N]? y
Import complete!
```

Import `mammals.csv` to a `mammals` collection in the  `animals` database running on *host* **mongo.travismclarke.com** at *port* **27111**:

```bash
$ csv-2-mongo -d animals -c mammals -H mongo.travismclarke.com -p 27111 ./mammals.csv
```

```txt
....................................
Connecting to mongo.travismclarke.com:27111
....................................

Import data.csv to database=animals collection=mammals [y/N]? y
Import complete!
```

To skip the prompt (e.g. `Import data.csv to ...`), such as running via a script, one can pass the `-y`, `--yes` flag to force a *yes* response to the confirmation prompt:

> Note: this will not suppress the *overwrite* prompt which still requires the `-f, --force` flag.

```bash
$ csv-2-mongo -y -d animals -c mammals ./mammals.csv
```

```txt
....................................
Connecting to 0.0.0.0:27017
....................................

Import complete!
```


## License

MIT &copy; [**Travis Clarke**](https://blog.travismclarke.com/)
pyautodiff 0.3.2
A package for automatic differentiation

# cs207-FinalProject
Group 2

Phoebe Wong

Pat Sukhum

Benedikt Groever

Maleah Fekete

[![Build Status](https://travis-ci.com/CS207-group2/cs207-FinalProject.svg?branch=master)](https://travis-ci.com/CS207-group2/cs207-FinalProject.svg?branch=master)

[![Coverage Status](https://coveralls.io/repos/github/CS207-group2/cs207-FinalProject/badge.svg?branch=travis)](https://coveralls.io/github/CS207-group2/cs207-FinalProject?branch=travis)

# Autodiff

[Click here to read the docs](docs/README.md)
my3n-test1-jellyfish 0.7.0
a library for doing approximate and phonetic matching of strings.

=========
jellyfish
=========

.. image:: https://travis-ci.org/jamesturk/jellyfish.svg?branch=master
    :target: https://travis-ci.org/jamesturk/jellyfish

.. image:: https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master
    :target: https://coveralls.io/r/jamesturk/jellyfish

.. image:: https://img.shields.io/pypi/v/jellyfish.svg
    :target: https://pypi.python.org/pypi/jellyfish

.. image:: https://readthedocs.org/projects/jellyfish/badge/?version=latest
    :target: https://readthedocs.org/projects/jellyfish/?badge=latest
    :alt: Documentation Status

.. image:: https://ci.appveyor.com/api/projects/status/9xeyl1f5sd5pl40h?svg=true
    :target: https://ci.appveyor.com/project/jamesturk/jellyfish/

Jellyfish is a python library for doing approximate and phonetic matching of strings.

Written by James Turk <dev@jamesturk.net> and Michael Stephens.

See https://github.com/jamesturk/jellyfish/graphs/contributors for contributors.

See http://jellyfish.readthedocs.io for documentation.

Source is available at http://github.com/jamesturk/jellyfish.

**Jellyfish >= 0.7 only supports Python 3, if you need Python 2 please use 0.6.x.**

Included Algorithms
===================

String comparison:

* Levenshtein Distance
* Damerau-Levenshtein Distance
* Jaro Distance
* Jaro-Winkler Distance
* Match Rating Approach Comparison
* Hamming Distance

Phonetic encoding:

* American Soundex
* Metaphone
* NYSIIS (New York State Identification and Intelligence System)
* Match Rating Codex

Example Usage
=============

>>> import jellyfish
>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
2
>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
0.89629629629629637
>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')
1

>>> jellyfish.metaphone(u'Jellyfish')
'JLFX'
>>> jellyfish.soundex(u'Jellyfish')
'J412'
>>> jellyfish.nysiis(u'Jellyfish')
'JALYF'
>>> jellyfish.match_rating_codex(u'Jellyfish')
'JLLFSH'

Running Tests
=============

If you are interested in contributing to Jellyfish, you may want to
run tests locally. Jellyfish uses tox_ to run tests, which you can
setup and run as follows::

  pip install tox
  # cd jellyfish/
  tox

.. _tox: https://tox.readthedocs.io/en/latest/