معرفی شرکت ها


frameup-0.1.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

DataFrames all up in your web applications
ویژگی مقدار
سیستم عامل -
نام فایل frameup-0.1.2
نام frameup
نسخه کتابخانه 0.1.2
نگهدارنده ['Scott Bradley']
ایمیل نگهدارنده ['scott@codeslick.com']
نویسنده Scott Bradley
ایمیل نویسنده scott@codeslick.com
آدرس صفحه اصلی https://github.com/scott2b/DataFrameup
آدرس اینترنتی https://pypi.org/project/frameup/
مجوز -
# DataFrameup ``` $ pip install frameup $ frameup <path-to-csvfile> ``` Frameup is the easiest way to get your Pandas DataFrame up into a Python-based web application. Simply `import frameup` and your DataFrames will become URL query parameter, and pagination aware. Zero dependencies, except Pandas of course. ## Quick look Serve a csv as a frameup dataframe on localhost ``` $ python -m frameup.serve <path-to-csv-file> ``` Then navigate to http://localhost:8000/. Use the [Pandas DataFrame query syntax](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html) in the query box. ... or, get a JSON payload: ``` $ curl 'http://localhost:8000/?query=&limit=10&page=1' | python -m json.tool ``` ## Use it in your web application ### Flask example Given a template similar to example.js.html ``` from flask import Flask, jsonify, render_template, request, url_for import pandas as pd import frameup app = Flask(__name__) df = pd.read_csv(YOUR_CSV_FILE) @app.route('/mydataframe') def main(): data = df.frameup.data(path=url_for('main'), **request.args) return render_template('example.j2.html', **data) ``` For something ajaxy, just replace the return with: ``` return jsonify(**data) ``` ## On query parameter objects Be sure the query parameter object you pass frameup does not return lists for values. `classes` is the only multi-valued parameter accepted, and should be passed as a comma-delimited list rather than multiple `classes` keys. Python web frameworks all have their own way of dealing with the vagaries of GET parameter specification hell. Most implement some concept of a `MultiDict`, but the APIs for these vary from one framework to the next. Thus, the requirement of only single-valued GET params greatly simplifies things here. ## Other projects Projects to review / learn from / use instead * [Datasette](https://github.com/simonw/datasette) * [Workbench](https://workbenchdata.com/)


نیازمندی

مقدار نام
>=0.23.0,<0.24.0 pandas


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl frameup-0.1.2:

    pip install frameup-0.1.2.whl


نصب پکیج tar.gz frameup-0.1.2:

    pip install frameup-0.1.2.tar.gz