Catalog PyPI
PACKAGE EXPLORERView in registry

advarchs

PyPI

Data retrieval from remote archives

advarchsarchiverartransferzip
Versions collected1
Direct dependencies2From release 0.1.7
Last observed20 Oct, 20:00 UTC

README

Version 0.1.7 documentation
Advarchs: Data retrieval from remote archives
=============================================

.. image:: https://img.shields.io/pypi/v/advarchs.svg
   :target: https://pypi.python.org/pypi/advarchs
   :alt: PyPI Version

.. image:: https://img.shields.io/pypi/pyversions/advarchs.svg
   :target: https://pypi.python.org/pypi/advarchs
   :alt: Supported Python Versions

.. image:: https://img.shields.io/travis/elessarelfstone/advarchs/master.svg
   :target: https://travis-ci.org/elessarelfstone/advarchs
   :alt: Build Status

.. image:: https://img.shields.io/badge/wheel-yes-brightgreen.svg
   :target: https://pypi.python.org/pypi/advarchs
   :alt: Wheel Status

Overview
--------
Advarchs is simple tool for retrieving data from web archives.
It is especially useful if you are working with remote data stored in compressed
spreadsheets or of similar format.

Getting Started
---------------

Say you need to perform some data anlytics on an excel spreadsheet that gets
refreshed every month and stored in RAR format. You can target a that file
and convert it to a pandas_ dataframe with the following procedure:

.. code-block:: python

    import pd
    import os
    import tempfile
    from advarchs import webfilename,extract_web_archive

    TEMP_DIR = tempfile.gettempdir()

    url = "http://www.site.com/archive.rar"
    arch_file_name = webfilename(url)
    arch_path = os.path.join(TEMP_DIR, arch_file_name)
    xlsx_files = extract_web_archive(url, arch_path, ffilter=['xlsx'])
    for xlsx_f in xlsx_files:
        xlsx = pd.ExcelFile(xlsx_f)

    ...

Requirements
------------

- ``Python 3.5+``
- ``p7zip``

Special note
~~~~~~~~~~~~

On CentOS and Ubuntu <= 16.04, the following packages are needed:

- ``unrar``

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

.. code-block:: shell

    pip install advarchs

Contributing
------------
See `CONTRIBUTING`_

Code of Conduct
~~~~~~~~~~~~~~~
This project adheres to the `Contributor Covenant 1.2`_.
By participating, you are advised to adhere to this Code of Conduct in all your
interactions with this project.

License
-------

`Apache-2.0`_

.. _`pandas`: https://pypi.org/project/pandas/
.. _`CONTRIBUTING`: https://github.com/elessarelfstone/advarchs/blob/master/CONTRIBUTING.md
.. _`Contributor Covenant 1.2`: http://contributor-covenant.org/version/1/2/0
.. _`Apache-2.0`: https://github.com/elessarelfstone/advarchs/blob/master/LICENSE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.71 Oct 20192

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
elessarelfstone/advarchs

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:68b925ce5109195e6bad88b5f323a5ffa23d926b54739ba8f0e64275129f3fc9