semvec/pypi-packages huggingface dataset:
swagger-aggregator 0.1.1
Aggregate several swagger APIs in one
License: MIT
Keywords: swagger,aggregator,API,REST,swagger-aggregator

.. image:: https://travis-ci.org/Trax-air/swagger-aggregator.svg?branch=master
   :alt: Travis status
   :target: https://travis-ci.org/Trax-air/swagger-aggregator

swagger-aggregator
==================

Swagger-aggregator allow you to create a swagger REST API from several other swagger REST APIs.

This can be really useful if you want to make an API Gateway accessing some of your internal APIs.
You can also filter which path you want to deliver, and which properties of your definitions you don't want to show.

Example Usage
-------------

Here is an example of an aggregate configuration.

.. code:: yaml

  args: pet_url

  info:
    version: "0.1"
    title: "API Gateway"

  basePath: /v2

  apis:
      pet: http://pet_url/v2

  exclude_paths:
    - DELETE /pets/{petId}

  exclude_fields:
    petPet:
      - id

This is not the most useful aggregation, as it only aggregate one API.
The first part, `args`, define that the first parameter we will send to the aggregate will be pet_url. Then pet_url will be replaced by the given value everywhere in the config.
The two next part, `info` and `basePath`, are the same as the ones you can find in every swagger API.
`apis`, define the different APIs you want to aggregate. A name is associated with it URL.
Then `exclude_paths` allow you to not deliver some path. In this case we don't want the user to delete a pet.

Finally, `exclude_fields` define the attributes of the definitions we do not want to show.
The value of the keys is the name of the API followed by the name of the definition. The value of each key will be a list of all properties to exclude.

Then use this command to generate the aggregated swagger file:

.. code:: python

  from traxit_aggregator import SwaggerAggregator

  SwaggerAggregator('config.yaml', 'pet.com')

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

More documentation is available at https://swagger-aggregator.readthedocs.org/en/latest/.

Setup
-----

`make install` or `pip install swagger-aggregator`

License
-------

swagger-aggregator is licensed under http://opensource.org/licenses/MIT.


=======
History
=======

0.1.1 (2016-1-31)
------------------

* Change license to MIT.

0.1 (2016-1-29)
------------------

* First release on PyPI.
flashair_sync 0.1.0
Simple directory syncer for Toshiba Flashair SD cards (used in 3D printers).
License: MIT
Keywords: 3d printing,flashair,sync

flashair_sync
-------------

Simple one way directory syncer for Toshiba Flashair SD cards, used in 3D printers.


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

::

    $ pip install flashair_sync

    or under Windows:

    C:\>py -m pip install flashair_sync


Example usage
-------------

::

    $ flashair_sync /directory/with/x3g_files 192.168.178.70 x3g s3g

    or under Windows:

    $ py flashair_sync c:\directory\with\x3g_files 192.168.178.70 x3g s3g

    If you want to do an initial sycn to the card, add the -i switch.

--help output
-------------

.. code-block::

    usage: flashair_sync [-h] [-p POLL_INTERVAL] [-i]
                       directory_path flashair_address file_extensions
                       [file_extensions ...]

    Watch a directory for change/delete events to files and sync to flashair card
    (not recursive!).

    positional arguments:
      directory_path        The directory to watch for changes.
      flashair_address      The address of your flashair card, eg.
                            "192.168.178.41"
      file_extensions       Only files that match one of these extensions get
                            monitored.

    optional arguments:
      -h, --help            show this help message and exit
      -p POLL_INTERVAL, --poll_interval POLL_INTERVAL
                            How many seconds between directory polls (default is 1).
      -i, --initial_sync    Copy all files that are new or changed to the card on
                            program start, also delete all files on the card which
                            are not in the current directory.  Without this switch
                            only files that are new/modified/deleted after the
                            program start are synced.
merge-requirements 0.6
simple lib for organize two requirements.txt in a unique requirements.txt file
License: MIT
Keywords: merge requirements

# merge-requirements

simple lib for organize two requirements.txt in a unique requirements.txt file

### Example:

cat requirements_1.txt
gunicorn==0.12.2
python-memcached==1.47
globocore==4.11.1
alf==0.4.2

cat requirements_2.txt
globocore==4.16.13
Django==1.4.13
IPTCInfo==1.9.5-6
alf==0.4

merge_requirements requirements_1.txt requirements_2.txt
create new file ./requirements-merged.txt

cat requirements-merged.txt
Django==1.4.13
gunicorn==0.12.2
globocore==4.16.13
alf==0.4.2
python-memcached==1.47
IPTCInfo==1.9.5-6