{"id":13417548,"url":"https://github.com/nomilkinmyhome/elasticmapper","last_synced_at":"2026-02-27T22:02:47.714Z","repository":{"id":45827121,"uuid":"514602514","full_name":"nomilkinmyhome/elasticmapper","owner":"nomilkinmyhome","description":"Easy generating ElasticSearch mappings based on ORM's models.","archived":false,"fork":false,"pushed_at":"2023-01-10T12:27:53.000Z","size":72,"stargazers_count":16,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T01:29:49.713Z","etag":null,"topics":["codegen","django","elasticsearch","mapping","peewee","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://elasticmapper.readthedocs.io/en/latest/index.html","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/nomilkinmyhome.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":"2022-07-16T14:36:55.000Z","updated_at":"2025-10-03T10:46:54.000Z","dependencies_parsed_at":"2023-02-08T18:45:54.449Z","dependency_job_id":null,"html_url":"https://github.com/nomilkinmyhome/elasticmapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nomilkinmyhome/elasticmapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomilkinmyhome%2Felasticmapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomilkinmyhome%2Felasticmapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomilkinmyhome%2Felasticmapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomilkinmyhome%2Felasticmapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomilkinmyhome","download_url":"https://codeload.github.com/nomilkinmyhome/elasticmapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomilkinmyhome%2Felasticmapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29917208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["codegen","django","elasticsearch","mapping","peewee","sqlalchemy"],"created_at":"2024-07-30T22:00:40.979Z","updated_at":"2026-02-27T22:02:47.676Z","avatar_url":"https://github.com/nomilkinmyhome.png","language":"Python","funding_links":[],"categories":["Проекты"],"sub_categories":["ElasticMapper"],"readme":"# ElasticMapper\nElasticSearch mapper for three ORMs - SQLAlchemy, Peewee, DjangoORM.\u003cbr /\u003e\nEasy generating ElasticSearch mappings based on models.\n\n## Installation\n\n```pip install elasticmapper```\n\n## Basic usage\n### Peewee example\n```python\nfrom peewee import *\nfrom elasticmapper import PeeweeMapper\n\ndb = SqliteDatabase('my_app.db')\n\nclass BaseModel(Model):\n    class Meta:\n        database = db\n\nclass User(BaseModel):\n    username = CharField(unique=True)\n    is_active = BooleanField(default=True)\n    age = IntegerField()\n\nuser_elastic_mapping = PeeweeMapper(model=User).load()\n```\n\n### SQLAlchemy example\n\n```python\nfrom sqlalchemy.orm import declarative_base\nfrom sqlalchemy import Column, Integer, String, Boolean\nfrom elasticmapper import SQLAlchemyMapper\n\nBase = declarative_base()\n\nclass User(Base):\n    __tablename__ = 'users'\n    id = Column(Integer, primary_key=True)\n    username = Column(String)\n    is_active = Column(Boolean)\n    age = Column(Integer)\n\nuser_elastic_mapping = SQLAlchemyMapper(model=User).load()\n```\n\n### DjangoORM example\n\n```python\nfrom django.db import models\nfrom elasticmapper import DjangoMapper\n\nclass User(models.Model):\n    username = models.CharField(max_length=30)\n    is_active = models.BooleanField(default=True)\n    age = models.IntegerField()\n\nuser_elastic_mapping = DjangoMapper(model=User).load()\n```\n\n#### Output for all examples: \n\n```python\n{\n    'id': {'type': 'integer'},\n    'username': {'type': 'text'},\n    'age': {'type': 'integer'},\n    'is_active': {'type': 'boolean'}\n}\n```\n\n## Documentation\n\nDocumentation lives [here](https://elasticmapper.readthedocs.io/en/latest/).\n\n## Contributing\n\nPR are welcome! If you want to help, please visit [the contribution guide](https://github.com/nomilkinmyhome/elasticmapper/blob/main/CONTRIBUTION_GUIDE.md), then take one of [the issues](https://github.com/nomilkinmyhome/elasticmapper/issues). Thank you for your contribution.\n\n## License \n\nCopyright © 2022 Polina Beskorovaynaya [ihatemilk](https://github.com/nomilkinmyhome)\n\nThis project has [MIT License](https://github.com/nomilkinmyhome/elasticmapper/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomilkinmyhome%2Felasticmapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomilkinmyhome%2Felasticmapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomilkinmyhome%2Felasticmapper/lists"}