semvec/pypi-packages huggingface dataset:
MetaEnum 1.0
UNKNOWN
License: MIT

example of use:

      class FOO(MetaEnum):
          BAZ = (0, 'bazik')
          BAR = 1

      >>> FOO.BAZ
      0
      >>> FOO.BAR
      1
      >>> FOO.BAZ_name
      'BAZ'
      >>> FOO.BAZ_verbose
      'bazik'
      >>> FOO.get_verbose(FOO.BAZ)
      'bazik'
      >>> FOO.get_verbose(FOO.BAR)
      None
      >>> FOO.as_choices()
      [(0, 'bazik'), (1, None)]

      >>> FOO.by_name('BAZ')
      0
      >>> FOO.by_verbose('bazik')
      1
flask-gae_messages 1.0.1
Flask extension for working with messages using the mail & xmpp apis on App Engine.
License: MIT

Flask App Engine Messages
-----------------------

Flask extension for working with messages using the mail & xmpp apis on
App Engine.

Links
`````

* `documentation <http://packages.python.org/flask-gae_messages>`_
* `development version
  <http://github.com/gregorynicholas/flask-gae_messages/zipball/master#egg=Flask%20App%20Engine%20Messages-dev>`_
flask-gae_blobstore 1.0.2
Flask extension module for working with the blobstore & files apis on App Engine.
License: MIT

flask-gae_blobstore
-----------------------

Flask extension for working with the blobstore & files apis on
App Engine.

Links
`````

* `documentation <http://packages.python.org/flask-gae_blobstore>`_
* `development version
  <http://github.com/gregorynicholas/flask-gae_blobstore/zipball/master#egg=flask_gae_blobstore-dev>`_
rebecca.sqla 0.1
pyramid context to load SQLAlchemy model.
License: MIT

.. contents::

rebecca.sqla
===============

``rebecca.sqla`` is utility to load model made on SQLAlchemy.


INSTALL
-----------------

Install using pip or easy_install::

  $ pip install rebecca.sqla
  $ easy_install rebeca.sqla


USAGE
--------------------

``rebecca.sql`` needs ``sqlalchemy.orm.scoped_session``.

specify session object and dsn string in settings::

  sqlalchemy.url = 'sqlite:///'
  rebecca.sqla.session = your.app.models.DBSession


``rebecca.sqla`` has include hook::

  config.include("rebecca.sqla")


this hook sets up the ``bind`` configuration of DBSession to ``sqlalchemy.url``.


``ModelLoader`` and ``SAContext``
---------------------------------------------

``rebecca.sqla`` creates attribute named "sa"  to ``request.context``.
``context.sa`` is ``SAContext`` to load models from ``ModelLoader`` registered by ``config.add_model_loader``.

here is example models::

  class Person(Base):
      __tablename__ = 'person'
      id = Column(Integer, primary_key=True)
      name = Column(Unicode(255))

and example route::

   config.add_route('person', '/person/{person1_id}/{person2_id}')

register model loaders::

   config.add_model_loader('person1', Person, [('person1_id', 'id')])
   config.add_model_loader('person2', Person, [('person2_id', 'id')])


``add_model_loader`` takes 3 arguments.
first is attr name of ``SAContext``,
second is a model loaded from ``ModelLoader`` and last is mappings that matchdict param to model attribute.

second argument can be dotted name.


in view, context has ``SAContext`` named "sa" attribute, that has properties of registered models.
``ModelLoader`` s load model with query using matchdict parameters.

::

   def person(context, request):
       person1 = context.sa.person1
       person2 = context.sa.person2




Contributors
============

- Atsushi Odagiri, Original Author


Changelog
=========

0.1 (2013-03-14)
----------------

- first release
corpcrawl 0.0.37
Corpcrawl EDGAR Scraper
License: MIT

corpcrawl
=============

# About
This is a python scraper for the Securities and Exchange Commission EDGAR database. It looks at the Form 10k
filings that publicly held corporations are required to file with the SEC. It then attempts to extract the 
subsidiary relationships from the 10k exhibit 21.1. 

Corpcrawl is a storage agnostic scraper, so you'll need to implement your own storage scheme. 


# Installation
You can get the package from PyPi through Pip. 
    
    pip install corpcrawl
    
From a python console you can try

    import corpcrawl
    
If it works, then you can get started

# How to use

## Running it
First import the required pieces
    
    from corpcrawl.crawler import CorpCrawl
    from corpcrawl.backend import Backend
    
    def main()
        my_backend = MyBackend()
        crawler = CorpCrawl(cache_path = '/an/absolute/path/to/some/dir', backend = my_backend)
        c.crawl(years = [2011, 2012], quarters = [1, 2, 3, 4])
    
    
    class MyBackend(Backend):

        def get_company(self, name):
            pass

        def add_company(self, comp):
            print "Adding %s" % str(comp)
            
            
            
            
            
            
This is about as simple of a backend as can be. This code will crawl the filings and print out the name of each
company and subsidiary that it finds for all quarters of years 2011 and 2012.
Obviously you will want to hook it up to a database or something.

# Notes
The SEC data is very unstructured. As such, there are a lot of errors. This is version 0.0.1, so instead of
implementing your own methods to massage the data that it returns, it would be better if you could contribute
so make the core parser better.