{"id":15015685,"url":"https://github.com/vallemrv/python-ormsqlite","last_synced_at":"2026-01-04T20:37:22.113Z","repository":{"id":62586993,"uuid":"94007880","full_name":"vallemrv/python-ormsqlite","owner":"vallemrv","description":"Es una orm simple. Con modelos JSON o con modelos derivados de Models. ","archived":false,"fork":false,"pushed_at":"2020-05-03T15:22:05.000Z","size":168,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T13:54:55.727Z","etag":null,"topics":["kivy","orm-library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vallemrv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-11T13:58:01.000Z","updated_at":"2020-05-03T15:22:07.000Z","dependencies_parsed_at":"2022-11-03T22:09:56.557Z","dependency_job_id":null,"html_url":"https://github.com/vallemrv/python-ormsqlite","commit_stats":null,"previous_names":["vallemrv/orm-python-sqlite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vallemrv%2Fpython-ormsqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vallemrv%2Fpython-ormsqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vallemrv%2Fpython-ormsqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vallemrv%2Fpython-ormsqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vallemrv","download_url":"https://codeload.github.com/vallemrv/python-ormsqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244981293,"owners_count":20542288,"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":["kivy","orm-library","python"],"created_at":"2024-09-24T19:47:47.239Z","updated_at":"2026-01-04T20:37:22.072Z","avatar_url":"https://github.com/vallemrv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-ormsqlite\n\nI've done it to work with kivy and android. It works great with mobile devices. For people who do not seek much complexity. It is simple but you can perform more or less complex queries. Create a model quickly in seconds. Just create the model and you can create JSON queries.\n\n\n:package: Installation\n-----------------------\n\nInstall it via `pip`\n\n`$ [sudo] pip install valleorm`\n\nOr download zip and then install it by running\n\n`$ [sudo] python setup.py install`\n\nFor kivy project only copy folder valleorm on root folder kivy project.\nAnd create your models simply.\n\nExample from Class inheritance Models\n-------------------------------------\n```python\nfrom valleorm.models import models\n\nlass Musician(models.Model):\n    first_name = models.CharField(max_length=50)\n    last_name = models.CharField(max_length=50)\n    instrument = models.CharField(max_length=100)\n\nclass Album(models.Model):\n    artist = models.ForeignKey(Musician, on_delete=models.CASCADE)\n    name = models.CharField(max_length=100)\n    release_date = models.DateField()\n    num_stars = models.IntegerField()\n\n\nm = Musician()\nm.first_name = \"Caracolo\"\nm.last_name = \"tambolero\"\nm.instrument = \"tambor\"\nm.save()\n\na = Album()\na.name = \"delicias\"\na.release_date = datetime.datetime.now()\na.num_starts = 10\n\nm.album.add(m)\n\nm = Musician.getByPk(1)\nprint(m.toJSON())\n\nals = m.album.get()\nfrom a in als:\n   print(a.toJSON())\n   \n   \n   \n\n```\n\nCondition example\n-----------------\n\n```python\n\n\nm = Musician.filter(first_name=\"caracolo\")\nm = Musician.filter(first_name__contain=\"ca\")\nm = Musician.filter(first_name__between=(\"caracolo\", \"picopato\"))\n\n\n\n```\n\n:yum: How to contribute\n-----------------------\n\nHave an idea? Found a bug? [add a new issue](https://github.com/vallemrv/python-ormsqlite/issues) or\n[fork] (https://github.com/vallemrv/orm-python-sqlite#fork-destination-box)\nand sendme a pull request. Don't forget to add your name to the Contributors section of this document.\n\n:scroll: License\n----------------\n\nLicensed under the Apache-2.0, see `LICENSE`\n\n:heart_eyes: Contributors\n--------------------------\n\nManuel Rodriguez \u003cvalle.mrv@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvallemrv%2Fpython-ormsqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvallemrv%2Fpython-ormsqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvallemrv%2Fpython-ormsqlite/lists"}