semvec/pypi-packages huggingface dataset:
pykka-injector 0.1.1
Pykka (actor model implementation) and Injector (dependency injection framework) integration module
License: MIT
Keywords: Dependency Injection,Injector,Pykka

pykka-injector
==============

.. image:: https://travis-ci.org/jstasiak/pykka_injector.png?branch=master
   :alt: Build status
   :target: https://travis-ci.org/jstasiak/pykka_injector


pykka-injector is a module uniting `Injector <https://github.com/alecthomas/injector>`_ (Dependency Injection framework) and `Pykka <https://github.com/jodal/pykka>`_ (Python implementation of the actor model). It's only purpose is to allow you to inject dependencies into Pykka Actors.

Works with:

* CPython 2.x >= 2.6, 3.x >= 3.2
* PyPy >= 1.9

Platform independent.


Usage example
-------------

::

    from injector import inject, Injector, InstanceProvider, Key, singleton
    from pykka import ThreadingActor
    from pykka_injector import ActorStarter

    Config = Key('Config')

    class MyActor(ThreadingActor):
        @inject(config=Config)
        def __init__(self, config, user):
            self.config = config
            self.user = user

    def configure(binder):
        binder.bind(
            Config,
            to=InstanceProvider(dict(environment='dev')),
            scope=singleton,
        )

    if __name__ == '__main__':
        injector = Injector(configure)
        starter = injector.get(ActorStarter)
        actor_ref = starter.start(MyActor, kwargs=dict(user='root'))

        actor_proxy = actor_ref.proxy()
        print(actor_proxy.config.get(), actor_proxy.user.get())

        actor_ref.stop()

Copyright
---------

Copyright (C) 2013 Jakub Stasiak

This source code is licensed under MIT license, see LICENSE file for details.
django-bootstrap-staticfiles 3.0.0.1
Django app that provides compiled Bootstrap assets
License: MIT
Keywords: django app staticfiles twitter bootstrap

django-bootstrap-staticfiles
============================

This package provides a Django_ app whose ``static`` folder contains the
compiled assets of Bootstrap_.

Each Bootstrap version will be tagged accordingly.

Setup
-----

1. Install the app::

    pip install django-bootstrap-staticfiles

2. Inlude it in your Django project::

    # settings.py:

    INSTALLED_APPS = (
        ...
        'django_bootstrap_staticfiles',
        ...
    )

3. Make sure ``django.contrib.staticfiles.finders.AppDirectoriesFinder`` is in
   your list of ``STATICFILES_FINDERS``.

Usage
-----

If you're not using an asset manager, you can just include them as usual in
your site templates.::

    {% load staticfiles %}
    ...
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
    ...

Copyright and license
---------------------

Copyright 2013 55 Minutes

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

.. _Django: https://www.djangoproject.com
.. _Bootstrap: http://getbootstrap.com