semvec/pypi-packages huggingface dataset:
hcprequestanalytics 1.5.3
hcprequestanalytics - analyze HCP HTTP request logs
License: MIT
Keywords: HCP access request http log Hitachi Content Platform

HCP request log analytics
=========================

**hcprequestanalytics** reads HTTP access logs from log packages created by
*Hitachi Content Platform* (HCP), loads the content into a SQL database and
runs SQL-queries against it.

Features
--------

It to provides information about topics like:

*   types of requests
*   types of requests to specific HCP nodes
*   types of reuests from specific clients
*   HTTP return codes
*   size distribution of requested objects
*   HCP internal latency distribution
*   clients

It can be easily extended with individual queries (see :doc:`30_queries`).

Results are generated as a multi-sheet XLSX workbook per default; optionally,
CSV files can be requested.

Dependencies
------------

You need to have at least Python 3.5.0 installed to run **hcprequestanalytics**.


Documentation
-------------

To be found at `readthedocs.io <http://hcprequestanalytics.readthedocs.io>`_

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

Install **hcprequestanalytics** by running::

    $ pip install hcprequestanalytics


-or-

get the source from
`gitlab.com <https://gitlab.com/simont3/hcprequestanalytics>`_,
unzip and run::

    $ python setup.py install


-or-

Fork at `gitlab.com <https://gitlab.com/simont3/hcprequestanalytics>`_

Contribute
----------

- Source Code: `<https://gitlab.com/simont3/hcprequestanalytics>`_
- Issue tracker: `<https://gitlab.com/simont3/hcprequestanalytics/issues>`_

Support
-------

If you've found any bugs, please let me know via the Issue Tracker;
if you have comments or suggestions, send an email to `<sw@snomis.eu>`_

License
-------

The MIT License (MIT)

Copyright (c) 2017-2019 Thorsten Simons (sw@snomis.eu)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
memair 0.2.1
SDK for Memair
License: MIT
Keywords: memair,quantified self,extended mind,lifelogging

=================
Memair Python SDK
=================

.. image:: https://badge.fury.io/py/memair.svg
    :target: https://badge.fury.io/py/memair

.. image:: http://img.shields.io/badge/license-MIT-yellow.svg?style=flat
    :target: https://github.com/memair/memair-python-sdk/blob/master/LICENSE

.. image:: https://img.shields.io/badge/contact-Gregology-blue.svg?style=flat
    :target: http://gregology.net/contact/

Overview
--------

SDK for simple interaction with the Memair APIs

Interactive Notebook
--------------------

Explore this package in an  `Interactive Notebook <https://mybinder.org/v2/gh/memair/jupyter/master>`__

.. image:: https://user-images.githubusercontent.com/1595448/47387817-6b88a080-d6de-11e8-822d-ddd4f83fbd9b.png
         :width: 80%

Hosted by `binder <https://mybinder.org>`__

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

``memair`` is available on PyPI

http://pypi.python.org/pypi/memair

Install via ``pip``
::

    $ pip install memair

Or via ``easy_install``
::

    $ easy_install memair

Or directly from ``memair``'s `git repo <https://github.com/memair/memair-python-sdk>`__
::

    $ git clone git://github.com/memair/memair-python-sdk.git
    $ cd memair
    $ python setup.py install

Basic usage
-----------

`Generate a temporary access token <https://memair.com/generate_own_access_token>`__

`Validate GraphQL with GraphiQL <https://memair.com/graphiql>`__

::

    >>> from memair import Memair
    >>> api_key = '0000000000000000000000000000000000000000000000000000000000000000'
    >>> user = Memair(api_key)
    >>> latest_location = user.query('''
            {
                Locations(first: 1, order: timestamp_desc) {
                lat
                lon
                timestamp
              }
            }
        ''')
    >>> latest_location['data']['Locations'][0]
    {'lat': 42.909056, 'lon': -74.572508, 'timestamp': '2018-07-27T22:27:21Z'}

Memair DNS tools
----------------

This package also includes a method to check if Memair DNS is blocked on specific dates.

::

    >>> from memair import is_dns_blocked
    >>> from datetime import date
    >>> is_dns_blocked(date(2019,1,9))
    True
    >>> is_dns_blocked(date(2019,1,10))
    False

Running Test
------------
::

    $ python tests.py

Python compatibility
--------------------

Developed for Python 3. May work but not tested in Python 2.