{"id":13735346,"url":"https://github.com/carltongibson/neapolitan","last_synced_at":"2025-05-14T15:08:30.135Z","repository":{"id":66021153,"uuid":"268241771","full_name":"carltongibson/neapolitan","owner":"carltongibson","description":"Quick CRUD views for Django","archived":false,"fork":false,"pushed_at":"2024-12-06T08:04:39.000Z","size":87,"stargazers_count":581,"open_issues_count":26,"forks_count":41,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-12T21:18:45.072Z","etag":null,"topics":["django"],"latest_commit_sha":null,"homepage":"https://noumenal.es/neapolitan/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carltongibson.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-31T08:46:44.000Z","updated_at":"2025-04-11T19:20:59.000Z","dependencies_parsed_at":"2024-03-24T12:29:19.035Z","dependency_job_id":"81381d75-a01b-4cdb-8ace-659dc318514d","html_url":"https://github.com/carltongibson/neapolitan","commit_stats":{"total_commits":103,"total_committers":12,"mean_commits":8.583333333333334,"dds":"0.11650485436893199","last_synced_commit":"5468ac0e04d6d8aa5d802e1535d6c2e29145f02d"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carltongibson%2Fneapolitan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carltongibson%2Fneapolitan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carltongibson%2Fneapolitan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carltongibson%2Fneapolitan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carltongibson","download_url":"https://codeload.github.com/carltongibson/neapolitan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631789,"owners_count":21136568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django"],"created_at":"2024-08-03T03:01:05.833Z","updated_at":"2025-05-14T15:08:30.129Z","avatar_url":"https://github.com/carltongibson.png","language":"Python","funding_links":[],"categories":["Third-Party Packages","Python"],"sub_categories":["Views"],"readme":"==========\nNeapolitan\n==========\n\n.. image:: https://img.shields.io/pypi/v/neapolitan.svg\n  :target: https://pypi.org/project/neapolitan/\n  :alt: PyPI version\n\nI have a Django model:\n\n.. code:: python\n\n    from django.db import models\n\n    class Bookmark(models.Model):\n        url = models.URLField(unique=True)\n        title = models.CharField(max_length=255)\n        note = models.TextField(blank=True)\n        favourite = models.BooleanField(default=False)\n\nI want easy CRUD views for it, without it taking all day:\n\n.. code:: python\n\n    # urls.py\n    from neapolitan.views import CRUDView\n    from .models import Bookmark\n\n    class BookmarkView(CRUDView):\n        model = Bookmark\n        fields = [\"url\", \"title\", \"note\"]\n        filterset_fields = [\n            \"favourite\",\n        ]\n\n    urlpatterns = [\n        *BookmarkView.get_urls(),\n    ]\n\nNeapolitan's ``CRUDView`` provides the standard list, detail,\ncreate, edit, and delete views for a model, as well as the hooks you need to\nbe able to customise any part of that.\n\nNeapolitan provides base templates and re-usable template tags to make getting\nyour model on the page as easy as possible.\n\nWhere you take your app after that is up to you. But Neapolitan will get you\nstarted.\n\nLet's go! 🚀\n\nNext stop `the docs \u003chttps://noumenal.es/neapolitan/\u003e`_ 🚂\n\nVersioning and Status\n---------------------\n\nNeapolitan uses a two-part CalVer versioning scheme, such as ``23.7``. The first\nnumber is the year. The second is the release number within that year.\n\nOn an on-going basis, Neapolitan aims to support all current Django\nversions and the matching current Python versions.\n\nPlease see:\n\n* `Status of supported Python versions \u003chttps://devguide.python.org/versions/#supported-versions\u003e`_\n* `List of supported Django versions \u003chttps://www.djangoproject.com/download/#supported-versions\u003e`_\n\nSupport for Python and Django versions will be dropped when they reach\nend-of-life. Support for Python versions will be dropped when they reach\nend-of-life, even when still supported by a current version of Django.\n\nThis is alpha software. I'm still working out the details of the API, and I've\nonly begun the docs.\n\n**But**: You could just read ``neapolitan.views.CRUDView`` and see what it does.\nUp to you. 😜\n\nInstallation\n------------\n\nInstall with pip:\n\n.. code:: bash\n\n    pip install neapolitan\n\nAdd ``neapolitan`` to your ``INSTALLED_APPS``:\n\n.. code:: python\n\n    INSTALLED_APPS = [\n        ...\n        \"neapolitan\",\n    ]\n\nTemplates expect a ``base.html`` template to exist and for that template to define a\n``content`` block. (Refs \u003chttps://github.com/carltongibson/neapolitan/issues/6\u003e.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarltongibson%2Fneapolitan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarltongibson%2Fneapolitan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarltongibson%2Fneapolitan/lists"}