semvec/pypi-packages huggingface dataset:
xontrib-pyrtn 0.2.0
Store the python return value of commands for the session.
License: MIT
Requires Python: >=3.6

<p align="center">
Store the python return value of commands for the session.
</p>

<p align="center">  
If you like the idea click ⭐ on the repo and <a href="https://twitter.com/intent/tweet?text=Nice%20xontrib%20for%20the%20xonsh%20shell!&url=https://github.com/dyuri/xontrib-pyrtn" target="_blank">tweet</a>.
</p>


## Installation

To install use pip:

```bash
xpip install xontrib-pyrtn
# or: xpip install -U git+https://github.com/dyuri/xontrib-pyrtn
```

## Usage

```bash
xontrib load xontrib_pyrtn
```

The xontrib adds two functions to the global namespace - `In[]` and `Out[]`. They are similar to `ipython`'s `In[]` and `Out[]`.
(`In()` and `Out()` is also available and does the same thing, except they can be called w/o argument and will show the list of input/output.)

A new `PROMPT_FIELD` `pyhistnum` is also added, to be able to include the number of the upcoming command (like in `ipython`).

## Example

```bash
$ xontrib load pyrtn
$ $PROMPT = "[{pyhistnum}]$ "
[2]$ [12 * 3 + 6]
[42]
[3]$ In[2]
"[12 * 3 + 6]\n"
[4]$ Out[2] + [1]
[42, 1]
[5]$ 
```

## Credits

This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter).
flaskresty 0.1.8
Flask-RESTY is a Fast API style support for Flask. It Gives you MyPy types with the flexibility of flask.
License: MIT
Requires Python: >=3.7,<4.0
Keywords: flask,flask-restx,Mypy

==============
Flask RESTY
==============

.. image:: https://img.shields.io/github/license/tactful-ai/flask-faster-api   
    :alt: License
    
.. image:: https://img.shields.io/github/stars/tactful-ai/flask-faster-api?style=social   :alt: GitHub Repo stars

.. image:: https://img.shields.io/pypi/pyversions/flaskresty   
    :target: https://pypi.org/project/flaskresty
    :alt: Supported Python versions



Flask-RESTY is a Fast API style support for Flask. It Gives you MyPy types with the flexibility of flask.



Compatibility
=============

Flask-RESTY requires Python 2.7 or 3.4+. 





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

You can install Flask-RESTY with pip:

.. code-block:: console

    $ pip install flaskresty
    

Quick start
===========

With Flask-RESTY and the autowire decorator feature, parsing path parameters and creating api models is done using only one decorator! 

.. code-block:: python

    from flask import Flask, jsonify, request
    from flask_restx import Api, Resource, fields, marshal_with, reqparse
    from typing import Dict, List, Optional, OrderedDict, get_type_hints
    from flaskresty import autowire_decorator

    app = Flask(__name__)


    api = Api(app, version='1.0', title='Courses API')

    autowire_decorator.register_api(api)


    courses_ns = api.namespace('courses', description='Courses Endpoints')
    course = api.model('Course', {})

    course_Model = dict({
        'id': int,
        'title': str,
        'duration': int
    })


    class CourseDAO(object):
        counter = 0
        courses = [{
            'id': 1,
            'title': 'Python',
            'duration': 300}]

        @ staticmethod
        def get(id):
            for course in CourseDAO.courses:
                if course['id'] == id:
                    return course
            api.abort(404, "Course {} doesn't exist".format(id))

        @ staticmethod
        def create(data):
            course = data
            course['id'] = CourseDAO.counter = CourseDAO.counter + 1
            CourseDAO.courses.append(course)
            return course

        @ staticmethod
        def update(id, data):
            course = CourseDAO.get(id)
            course.update(data)
            return course

        @ staticmethod
        def delete(id):
            course = CourseDAO.get(id)
            CourseDAO.courses.remove(course)


        @ courses_ns.route('/<int:id>')
        class Course(Resource):
            @ courses_ns.doc('get_course')
            @ autowire_decorator.autowire_decorator('/<int:id>')
            def get(self, id) -> course_Model:
                course_data = CourseDAO.get(id)
                return course_data



        if __name__ == '__main__':
            app.run(debug=True)





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

Flask-RESTY is brought to you by @seifashraf1, @ahmedihabb2, @nadaabdelmaboud, @omargamal253




Contribution
============
Want to contribute? That's awesome! (Details Soon)