django-tastypie
Python Fire
django-tastypie | Python Fire | |
---|---|---|
6 | 37 | |
3,891 | 26,335 | |
0.1% | 0.6% | |
4.5 | 6.8 | |
10 days ago | 4 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
django-tastypie
- Django Tastypie: Create APIs that is RESTful and uses HTTP well
-
deploying django app to heroku
Unfortunately tastypie doesn't yet work with Django 4.1 - I logged this bug a few weeks ago https://github.com/django-tastypie/django-tastypie/issues/1640
- cannot import name '_sanitize_token' from django
-
API framework choice?
Other than DRF, TastyPie is the other REST API framework for Django I had used in the past.
-
[D] Software engineers building apps with ML features
For an API, if you have a backend like Django (which I admit has a solid learning curve) you can make quick APIs with addons like django rest framework, or tastypie. The most recent I saw was django-ninja, but I have yet to try that out. I think an ML / cookie cutter plugin would be pretty interesting to be honest. I'll keep a look out and see, but /u/halfourname is correct, the flexibility would have penalties. Usually they're very narrow in scope.
-
Does anyone know the status of Tastypie? Worth using?
But the django-tastypie GitHub repo shows there's recent activity and it now supports "Django 2.2, 3.2 (LTS releases) or Django 4.0 (latest release)".
Python Fire
-
CLI tools hidden in the Python standard library
The cli tool [fire](https://github.com/google/python-fire/blob/master/docs/guide...) has a nifty feature where it can generate a cli for any file for you.
So random and math are somewhat usable that way
$ python -m fire random uniform 0 1
-
Build CLI blazingly fast with python-fire 🔥
With python-fire you can use either function or class to create your subcommands. But I find working with classes more intuitive and manageable. Our first command is going to be a sub-command that shows us the UTC time.
- What is the status of Python 3.11?
-
I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me
Have you checked out fire? Personally, I think it's a really elegant solution to turning a callable object into command line. Plus, the chaining function calls feature lets you build some pretty complex command line patterns likes you never seen with other frameworks. Definitely worth giving it a try!
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
I started with click but found python fire to be so much easier to use.
-
Best way to get data into python scripts
I highly recommend checking out fire for adding a CLI quickly to little utility scripts that aren't going to be published to the world but just for you.
-
What are your coolest tools for one-liners ?
python fire autogenerates CLI wrappers for python modules, which really synergizes with method-chaining APIs like pandas.
-
Show HN: Rocketry – Modern scheduler to power your Python projects
Fire can basically do the first step (object -> CLI):
https://github.com/google/python-fire
Gooey can do (CLI -> GUI):
https://github.com/chriskiehl/Gooey
-
What packages replaced standard library modules in your workflow?
also, while we're on the subject, fire may not be the same kind of workhorse as argparse or click, but for really simple stuff it's pretty awesome
-
Eclipse: python-fire inspired library to simplify creating CLIs in Go, on top of Cobra
I'm relatively new to Go (coming from Python) so I haven't been using Cobra (or Go, for that matter) for long but it's clearly very polished -- only friction I was experiencing with it is there's a lot of boilerplate to creating commands and subcommands, that IMO (idea as proven by python-fire) can be naturally (better) expressed as types / fields / methods that are already built into the language.
What are some alternatives?
django-rest-framework - Web APIs for Django. 🎸
click - Python composable command line interface toolkit
Django REST Swagger - Swagger Documentation Generator for Django REST Framework: deprecated
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.
django-sql-explorer - Easily share data across your company via SQL queries. From Grove Collab.
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
django-classifier - Flexible constructor to create dynamic list of heterogeneous properties for some kind of entity. This set of helpers useful to create properties like contacts or attributes for describe car/computer/etc.
PyInquirer - A Python module for common interactive command line user interfaces
django-modern-rpc - Simple XML-RPC and JSON-RPC server for modern Django
docopt - This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng
django-template - A battle-tested Django 2.1 project template with configurations for AWS, Heroku, App Engine, and Docker.
pydantic-cli - Turn Pydantic defined Data Models into CLI Tools