semvec/pypi-packages huggingface dataset:
afpproxy 0.1.2
proxy for the AFP (AppleShare) protocol
License: MIT

=========
AFPproxy
=========

AFPproxy is an MIT licensed proxy for an AppleShare file server. You can use it to help debug client/server connections on Mac OS X, but I wrote it to explore the Twisted networking framework.

When running, the proxy prints details of the client/server communication to stderr.


Installation
=============

Requires Python 2.5 or later and Twisted. AFPproxy does not run on Python 3. Mac OS X 10.5 and later include Python and Twisted by default.

You can download and install the source directly::

    tar -xf afpproxy-0.1.tar.gz
    cd afpproxy-0.1
    python setup.py install

Or install it from PyPI::

    pip install afpproxy

If you don't have Twisted installed, install it. For Python 2.5 install it with::

    pip install 'Twisted<12.2' 'zope.interface<4'


Usage
======

Once installed, start the proxy with the ``afpproxy`` command.

By default this proxies your real AFP server on localhost port 548, and accepts connections on port 5548. You then connect to the running afpproxy and will see a description of the commands sent between client and server.

To proxy to a different server give its name or IP address::

    afpproxy --host example.com

Or to proxy to a server running on a non-standard port::

    afpproxy --host example.com --port 1234

To start a proxy listening for connections on port 1548::

    afpproxy --listen 1548

By default afpproxy will log (relatively) meaningful information about the requests and responses. If you want to see the bytes of each and every command use the ``--debug`` flag::

    afpproxy --debug


Development
===========

The source for afpproxy is hosted on GitHub: https://github.com/davidwtbuxton/afpproxy
octopush 1.0.0
Python library for Octopush API
License: MIT
Keywords: octopush sms

Octopush API Python
=========================

|Build Status|

A Python library for `Octopush API <http://www.octopush.com/en/sms-api>`__.

Octopush offers a solution that was built in-house as a hosted service (SaaS, Software as a Service and an API)
to allow marketing departments of major groups, advertising agencies and IT companies to enjoy an infrastructure
that supports sending SMS messages to more than 200 countries.

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

Install via PyPI

.. code:: shell

    pip install octopush

Or add ``octopush`` to your application's `requirements
file <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__
and then run

.. code:: shell

    pip install -r requirements.txt

Or from source code

.. code:: shell

    git clone https://github.com/bearburger/octopush-api-python.git
    cd octopush-api-python
    python setup.py install

Usage
-----

Config file (``config.js``)
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

    import octopush
    import datetime

    config = {
        'user_login': '*******@*******',
        'api_key': '****************',
        'sms_recipients': ['+33600000000'],
        'sms_text': 'test text ' + datetime.datetime.now().strftime("%Y-%m-%d %H:%M"),
        'sms_type': octopush.SMS_WORLD,
        'sms_sender': 'onesender'
    }

Balance check
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

    from octopush import SMS
    from config import config

    sms = SMS(config['user_login'], config['api_key'])

    result = sms.get_balance()

    for balance in result.findall('balance'):
        print(balance.attrib['type'], balance.text)

SMS sending
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

    from octopush import SMS
    from config import config
    import uuid

    sms = SMS(config['user_login'], config['api_key'])
    sms.set_sms_text(config['sms_text'])
    sms.set_sms_recipients(config['sms_recipients'])
    sms.set_sms_type(config['sms_type'])
    sms.set_sms_sender(config['sms_sender'])
    sms.set_sms_request_id(str(uuid.uuid1()))

    result = sms.send()

    print(result)

More examples can be found in `Simple Examples`_ and `Advanced Examples`_.

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

-  API key, register at `octopush.com`_ to get one
-  Python 2.6+, 3.5+
-  `python-requests`_

Documentation
~~~~~~~~~~~~~

This library is completely documented using `PyDoc`_ and will show
autocompletions in all editors that supports it. Alternatively you can
build HTML version of documentation via `pydoc` tool.

API documentation available on `Octopush API documentation portal`_.

.. _Simple Examples: examples/simple_examples/
.. _Advanced Examples: examples/advanced_examples/
.. _octopush.com: http://www.octopush.com/en/registration
.. _python-requests: http://docs.python-requests.org/en/master/
.. _PyDoc: https://docs.python.org/2/library/pydoc.html
.. _Octopush API documentation portal: http://www.octopush.com/en/api-sms-documentation
.. |Build Status| image:: https://travis-ci.org/bearburger/octopush-api-python.png?branch=master
   :target: https://travis-ci.org/bearburger/octopush-api-python
django-dropimages 0.1.6
Uses Dropzone.js and django-braces to simplify the upload of multiple images into a collection object.
License: MIT

# Django Dropimages #
Uses [Dropzone.js](http://www.dropzonejs.com/) and [django-braces](https://github.com/brack3t/django-braces) to simplify the upload of multiple images into a collection object.


## Installation
Install from PyPI with `pip`:

`pip install --pre django-dropimages`


## Documentation
Add 'django_dropimages' to the list of installed apps.

Add `url(r'^__dropimages__/', include(django_dropimages.urls)),` to your urls.py

Add `{% load drop_images %}` at the start of the template, `{% drop_images_js %}` where the javascripts are loaded, 
and `{% drop_images  %}` where you want the dropzone to show.

Each image file dropped into the dropzone will create a `DropimagesImage` model, contained in a `DropimagesGallery` 
unique for every dropzone instance.
You can customize in order to specify which model will hold the image instead of `DropimagesImage`, 
or completely override the called urls and use your own logic.

## Configuration
Provides a setting dictionary that you can add in your project’s settings module to customize its behavior.

### DROP_IMAGES_CONFIG

#### keys:

+ `SHOW_ID_ON_COMPLETE`

    Specify a DOM node id which will be set to 'display: block' once all the files are processed, useful to integrate
    the dropzone into another modelform or wizard (see the examples).
    
+ `GALLERY_FIELD_ID`

    Specify the id of a select field to be filled with the `DropimagesGallery` Django instance pk once the upload is 
    complete, useful to integrate the dropzone into another modelform or wizard (see the examples).


+ `UPLOAD_URL`

    Overrides the url where file data is POSTed, so you can use your own view to save the data.
    An option `?gallery_id` is automatically appended to the url, which is the same  for every file uploaded but unique 
    among different dropzone instances.

+ `DELETE_URL`

    Overrides the url to ask for immediate image removal from the dropzone, so you can use your own view.
    Two options are automatically appended to the url; `?gallery_id` which is the same for every file into the dropzone 
    but unique among different dropzone instances, and `original_filename` which should be saved into `DropimagesImage`
    or whichever model you use to save images in order to identify them.
    
+ `DROPIMAGE_MODEL`

    Use the specified model ( must be a `appname.ModelName` string ) to save the uploaded images.
    Model must have a ForeignKey to `dropimages.DropImagesGallery` called `dropimages_gallery` and a 
    `dropimages_original_filename` `CharField`.

+ `DROPIMAGE_FIELD`

    Save the image into the specified field name of the `DROPIMAGE_MODEL` model.


+ `DICT_DEFAULT_MESSAGE`

    The message that gets displayed before any files are dropped.
    

## Example
To navigate the example page (assuming you use [virtualenvwrapper](https://pypi.python.org/pypi/virtualenvwrapper)) :

    mkvirtualenv django-dropimages
    pip install example/requirements.txt
    add2virtualenv .
    python example/manage.py migrate
    python example/manage.py runserver