semvec/pypi-packages huggingface dataset:
arm_archive 0.1.0
A module for accessing data from the ARM Archive
License: BSD

arm_archive.py is a Python module for accessing data from the
`ARM archive <http://www.archive.arm.gov>`_.

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

* Python 2.7, 3.3, 3.4.
* `Suds <https://pypi.python.org/pypi/suds>`_ with Python 2.7.
* `Suds-jurko <https://pypi.python.org/pypi/suds-jurko>`_ with Python 3.3/3.4.

Install
-------

To install using pip use::

    pip install arm_archive

To install from source in your home directory, use::
    
    python setup.py install --user

To install for all users on Unix/Linux::

    python setup.py install

Use
---
The functions in the module can be used in Python after importing the module.

The module can also be used from the command line using::

    python -m arm_archive

This can be aliased in bash using::

    alias apu='python -m arm_archive'


Command line examples
---------------------

These examples assume that the above alias has been created so that
'python -m arm_archive' can be executed using 'apu'. Addition help for each
command can be obtained using 'apu command -h', for example 'apu list -h'.

List available datastreams which match a regular expression::

    $ apu datastreams sgpceil
    sgpceilB1.b1
    sgpceilB4.b1
    sgpceilB5.b1
    sgpceilB6.b1
    sgpceilC1.b1
    sgpceilpblhtC1.a0

List available files for a specific time period::

    $ apu list sgpceilC1.b1 20141001 20141005
    sgpceilC1.b1.20141001.000010.nc
    sgpceilC1.b1.20141002.000008.nc
    sgpceilC1.b1.20141003.000004.nc
    sgpceilC1.b1.20141004.000002.nc
    sgpceilC1.b1.20141005.000000.nc

Leaving off the end date will find file for only a single day::

    $ apu list sgpceilC1.b1 20141015
    sgpceilC1.b1.20141015.000009.nc

Ordering data for a specific datastream and time period::

    $ apu order -d sgpceilC1.b1 20141001 20141005 username
    Success 5 file(s) ordered, order_id: 123456

Ordering data by supplying a list of filenames::

    $ apu order username sgpceilC1.b1.20141015.000009.nc
    Success 1 file(s) ordered, order_id: 123456

Check that status of an order::

    $ apu status 123456
    processing

List files in a complete order::

    $ apu files username 123456
    AAA.files_not_found
    sgpceilC1.b1.20141005.000000.nc
    sgpceilC1.b1.20141015.000009.nc

Download file from a complete order to the current directory::

    $ apu download username 168977
    Retrieving: AAA.files_not_found
    Retrieving: sgpceilC1.b1.20141005.000000.nc
    Retrieving: sgpceilC1.b1.20141015.000009.nc

Download a single file from a complete order::

    $ apu download username 168977 sgpceilC1.b1.20141005.000000.nc
    Retrieving: sgpceilC1.b1.20141005.000000.nc

Canceling an order::

    $ apu cancel username 123456
    True

List all orders with some files ready to download for a given user::

    $ apu ready username
    123456
    123457
django-orm-magic 0.4
An extension for IPython that help to define django's models in your interactive session.
License: BSD
Keywords: ipython notebook django orm standalone

=================
Django ORM Magic
=================

.. image:: https://pypip.in/v/django-orm-magic/badge.png
   :target: https://pypi.python.org/pypi/django-orm-magic
   :alt: Latest PyPI version

.. image:: https://pypip.in/d/django-orm-magic/badge.png
   :target: https://pypi.python.org/pypi/django-orm-magic
   :alt: Number of PyPI downloads


:author: Martín Gaitán <gaitan@gmail.com>
:homepage: https://github.com/mgaitan/django-orm-magic
:documentation: see `this notebook`__

__ documentation_
.. _documentation:  http://nbviewer.ipython.org/urls/raw.github.com/mgaitan/django-orm-magic/master/documentation.ipynb


Define your django models in an IPython cell and use them on the fly.
Let the magic do the boring part.

Django ORM isn't conceived to be used standalone. Even for a trivial case, you need to configure a database, create an app, etc. This magic handle that automatically, and then import every model to your interactive session.


Install
=======

You can install or upgrade via pip

    pip install -U django-orm-magic

or directly from the repository using the `%install_ext` magic command::

    In[1]: %install_ext https://raw.github.com/mgaitan/django-orm-magic/master/django_orm_magic.py


Basic usage
===========

Once it's installed, you can load it with ``%load_ext django_orm_magic``. Then define your models in a cell started with the cell magic ``%%django_orm``.
For example::

    In[2]: %load_ext django_orm_magic


    In[3]: %%django_orm

           from django.db import models

           class Poll(models.Model):
               question = models.CharField(max_length=200)
               pub_date = models.DateTimeField('date published')

           class Choice(models.Model):
               poll = models.ForeignKey(Poll)
               choice_text = models.CharField(max_length=200)
               votes = models.IntegerField(default=0)


And it's done. Every model is synced in a sqlite database named ``db.sqlite`` in your current path and imported automatically::


    In[4]: Poll.objects.all()
    Out[4]: []

    In[5]: from django.utils import timezone
           p = Poll(question="What's new?", pub_date=timezone.now())
           p.save()


See the documentation_ for further details.

See here_ for another example

.. _here: http://nbviewer.ipython.org/gist/mgaitan/7224431#modelando-resultados.gob.ar-en-una-base-de-datos



Changelog
=========

0.3.1 / 2014-01-21
------------------

- Fix bug `#4 <https://github.com/mgaitan/django-orm-magic/issues/4>`_
  (now install via pip works)


0.3 / 2013-12-14
----------------

- Added `%django_settings` magic
- Added a tutorial notebook

0.2 / 2013-12-11
-----------------

- Moved the code to github.
- Packaged and registered in PyPi


0.1 / 2013-10-29
-------------------

- First public release (as a gist_)

.. _gist: https://gist.github.com/mgaitan/7207448