{"id":16154930,"url":"https://github.com/rroemhild/lavatar","last_synced_at":"2025-03-18T20:30:21.518Z","repository":{"id":5715476,"uuid":"6926617","full_name":"rroemhild/lavatar","owner":"rroemhild","description":"LDAP-backend avatar server","archived":false,"fork":false,"pushed_at":"2019-09-18T15:58:15.000Z","size":33,"stargazers_count":10,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-15T00:47:52.668Z","etag":null,"topics":["avatar","avatar-service","flask","ldap","python"],"latest_commit_sha":null,"homepage":"","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/rroemhild.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}},"created_at":"2012-11-29T18:51:56.000Z","updated_at":"2024-03-25T16:58:09.000Z","dependencies_parsed_at":"2022-07-10T16:48:54.115Z","dependency_job_id":null,"html_url":"https://github.com/rroemhild/lavatar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Flavatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Flavatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Flavatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Flavatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rroemhild","download_url":"https://codeload.github.com/rroemhild/lavatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949725,"owners_count":20373648,"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":["avatar","avatar-service","flask","ldap","python"],"created_at":"2024-10-10T01:19:17.275Z","updated_at":"2025-03-18T20:30:21.272Z","avatar_url":"https://github.com/rroemhild.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lavatar\n=======\n\nLavatar is an LDAP-backend avatar server with `Gravatar \u003chttps://secure.gravatar.com/site/implement\u003e`_ like URL support.\n\nLavatar fetches all email addresses from an LDAP server with a given search filter and stores them with their md5hash on Redis. Per defualt Lavatar also use Redis to cache the avatar images.\n\nFor now lavatar only support image requests.\n\nQuick start\n-----------\n\nYou can use the docker container image and the docker-compose example to test this app:\n\n.. code-block:: shell\n\n    wget https://raw.githubusercontent.com/rroemhild/lavatar/master/docker-compose.yml\n    docker-compose up\n\nand test in browser: http://localhost:5000/avatar/982391f62e589420d9fdb56a62c5e16c\n\nInstall\n-------\n\n.. code-block:: shell\n\n    git clone https://github.com/rroemhild/lavatar.git\n    cd lavatar\n    pip install -r requirements.txt gevent\n    cp lavatar/default_settings.py settings.py\n\nConfigure lavatar in settings.py and run ``python production.py`` example.\n\nImage Request\n-------------\n\nThe default image size for the base request is 80x80, max size limit is 1024x1024.\n\n.. code-block:: shell\n\n    http://localhost:5000/avatar/HASH\n\nSet ``s`` or ``size`` to scale the avatar image\n\n.. code-block:: shell\n\n    http://localhost:5000/avatar/HASH?s=160\n\nSet ``d`` or ``default`` for the default image available in ``static/img``.\n\n.. code-block:: shell\n\n    http://localhost:5000/avatar/HASH?d=keyword\n\nSet ``m`` or ``method`` to resize Image with the specified method: 'crop', 'cover', 'contain', 'width', 'height' or 'thumbnail'. Default is ``thumbnail``\n\n.. code-block:: shell\n\n    http://localhost:5000/avatar/HASH?s=120\u0026m=cover\n\nSet ``w`` or ``width`` to resize width and ``h`` or ``height`` to resize height.\n\n.. code-block:: shell\n\n    http://localhost:5000/avatar/HASH?h=120\u0026m=height\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frroemhild%2Flavatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frroemhild%2Flavatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frroemhild%2Flavatar/lists"}