semvec/pypi-packages huggingface dataset:
sample-s3 0.0.4
Create a sample data set from a large CSV file on Amazon S3.
License: MIT
Keywords: aws s3 data csv

This utility allows you to extsact sample lines from a CSV hosted on Amazon S3.
The use case is that you have a really large CSV on S3 that you want to look at,
but you do not want to download the entire file.

What it does is grab random bytes from the key and assemble unbroken lines from
the file to create as sample.

The use case is for determining a file format, file contents, etc. See the
cognoscenti project for an example. (Um, this doesn't exist yet. Check back later.)

_Usage: sample.py [OPTIONS]_

    Options:
      --bucket TEXT             bucket name
      --key TEXT                key name
      --headers / --no-headers  Include headers in output. Defaults to include.
      -d, --delimiter TEXT      File delimiter. Defaults to ','
      -l, --lines INTEGER       How many sample lines do you want? Defaults to 1000.
      --help                    Show this message and exit.

Allows you to indicate the number of lines you hope to recieve. It will
grab 1000 lines by default.

#### Installing

You can install via pip:

pip install sample-s3

#### Example

  ss3 --bucket foo --key path/to/bar.csv > sample_file.csv
offer 0.2.1
Quickly host files for local transfer.
License: MIT
Keywords: host,network,local

offer
=====

|BuildStatus|

Quickly *offer* a file for download on LAN.

Usage
-----

::

    pip install offer

Then you can use it from the CLI:

::

    offer ~/path/file.ext

It'll try to host the file on port ``80`` by default and will fall back on port
``8000`` silently if it is not run with the correct permissions. You can provide
a custom port via the ``--port`` argument.

Then from another computer/tablet/phone, you can either point the browser at
the IP address printed out or use `curl`.

Note about cURL
---------------

Remember to use the `-L` flag with cURL to follow redirects.

.. |BuildStatus| image:: https://travis-ci.org/musically-ut/offer.svg?branch=master
   :target: https://travis-ci.org/musically-ut/offer