semvec/pypi-packages huggingface dataset:
astro-smpy 0.1.dev
SMpy: Flexible stellar pops., masses and mock observations with python
License: MIT

Stellar populations and Masses with Python
==========================================

This package contains Python software designed for building and processing composite stellar populations in a simple but flexible manner. It allows for easy synthetic photometry to be produced for single models or large suites of models.

The code makes use of the `Astropy <https://astropy.readthedocs.org>`_ module throughout and therefore allows for easy conversion of physical units and a wide range of allowed cosmologies.

Currently supported simple stellar population models are:

1. Bruzual & Charlot 2003
2. `BPASS V1 & V2 <http://bpass.auckland.ac.nz/>`_ 


License
=======
``SMpy`` is licensed under the terms of the MIT license. See the file
"LICENSE" for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.

All trademarks referenced herein are property of their respective holders.

Copyright (c) 2015--, Kenneth Duncan
just-another-settings 1.0
Small lib to manage settings as object for Flask/Bottle/custom apps
License: MIT

just another settings
~~~~~~~~~~~~~~~~~~~~~

Just a code I use in a few Bottle/Flask-based and a few other projects.

.. code:: python

    from just_another_settings import EnvSelector, EnvField

    class BaseSettings(object):
        DEBUG = True
        # EnvField looks for the variable and fetches it, otherwise use value from default parameter
        MONGOLAB_URL = EnvField('MONGO_URL')
        HOST = EnvField('HOST', default='localhost')


    class ProdSettings(BaseSettings):
        DEBUG = False
        HOST = 'example.com'


    class DevSettings(BaseSettings):
        pass


    # env selector - selects settings base on env values
    env_selector = EnvSelector('APP_MODE', 'dev', dev=DevSettings(), prod=ProdSettings())

    # value selector - selects settings base on passed(to the `choose` method) value
    by_value_selector = ValueSelector(dev=DevSettings(), prod=ProdSettings())

    # somewhere in main file:
    # env
    application.config.from_object(env_selector.choose())
    # by value
    application.config.from_object(by_value_selector.choose('dev'))
surveyhelper 0.1.1.dev3
Survey package for reporting on survey data from Qualtrics.
License: MIT

SurveyHelper
============

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

Please note that this package is only available for Python 3.

::

    pip install surveyhelper

Overview
--------

SurveyHelper is a Python 3 package currently under development. It will 
provide utilities for analyzing and visualizing survey data. It is 
initially geared at reading surveys in from Qualtrics by parsing a .qsf 
file and a response file. At present, it creates html frequency reports
using d3.js.

Example usage::

    import surveyhelper as sh
    
    p = sh.QsfParser("my_qualtrics_file.qsf")
    c = p.create_codebook()
    
    for label in ['Q1', 'Q2', 'Q3']:
        c.questions[label].exclude_choices_from_analysis(['Not applicable'])

    for label in ['Q2', 'Q3']:
        c.questions[label].change_scale('ordinal')

    c.questions['Q1'].reverse_choices()
    c.questions['Q1'].change_midpoint(2)

    # Remove initial numbering from question text
    for label, q in c.questions.items():
        q.text = re.sub(r'[0-9]\. ','', q.text)


    r = sh.ResponseSet("my_qualtrics_responses.csv", c)
    f = sh.FrequencyReport(r, 'config.yml')
    f.create_report()