{"id":13697635,"url":"https://github.com/sarojbelbase/alamari","last_synced_at":"2025-05-12T21:27:31.451Z","repository":{"id":57409474,"uuid":"372852106","full_name":"sarojbelbase/alamari","owner":"sarojbelbase","description":"A collection of smart utils and helper functions combined inside a single python package.","archived":false,"fork":false,"pushed_at":"2024-05-20T03:56:39.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T14:57:53.563Z","etag":null,"topics":["daraz","devanagiri","github-workflows","helper-functions","made-in-nepal","nepal-time","nepali-package","nepali-utils","ordinalize","pluralize","pypi-package","utilities","utils-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/alamari","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/sarojbelbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-06-01T14:07:02.000Z","updated_at":"2024-05-20T03:56:42.000Z","dependencies_parsed_at":"2024-05-20T04:49:44.416Z","dependency_job_id":null,"html_url":"https://github.com/sarojbelbase/alamari","commit_stats":null,"previous_names":["sarojbelbase/alamari","sidbelbase/alamari"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarojbelbase%2Falamari","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarojbelbase%2Falamari/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarojbelbase%2Falamari/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarojbelbase%2Falamari/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarojbelbase","download_url":"https://codeload.github.com/sarojbelbase/alamari/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253824519,"owners_count":21970037,"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":["daraz","devanagiri","github-workflows","helper-functions","made-in-nepal","nepal-time","nepali-package","nepali-utils","ordinalize","pluralize","pypi-package","utilities","utils-library"],"created_at":"2024-08-02T18:01:01.021Z","updated_at":"2025-05-12T21:27:31.400Z","avatar_url":"https://github.com/sarojbelbase.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Alamari\n\n### A typical package to get all your utilities (with AI capabilities)\n\nThis package was invented out of necessity, out of boredom \u0026 above all due to need (I'm serious).\n\n##### \"A collection of utils that you might not require but might need.\"\n\n\u003e Bored Me, 2021\n\n## FAQs\n\n### Q1. What I'm getting out of this package?\n\n```python\n\u003e\u003e\u003e import alamari\n```\n\nANS: Glad you thought. First of all, you get this beautifully named package called `alamari`. Isn't this word beautiful? Just think about it; you can import this package into your side projects. Now you may be wondering, how this guy knew about my 213th side project because this package has `telemetry` installed by default. It tracks any developer when they install this beautifully-named-and-thought-out package. I know I'm getting nowhere here, it's how it has been made, to let you nowhere (just kidding). Please, skip to the next line.\n\n```python\n\n# Convert Section\n\n# convert to integer with a smart AI (lol)\n\u003e\u003e\u003e from alamari.convert import *\n\u003e\u003e\u003e to_integer('abc123abc456')\n\u003e\u003e\u003e '123,456'\n\n# convert to roman from devanagari\n\u003e\u003e\u003e to_roman('तनहुँ ब्यास नगरपालिका सागेकी २२ वर्षीया युवतीकी एक जना आमाजु पर्ने थिइन्')\n\u003e\u003e\u003e 'tanahun byaasa nagarapaalikaa saageki 22 warsiyaa yuwatiki eka janaa amaaju parne thiin'\n\n# convert to nepali date from english date\n\u003e\u003e\u003e to_nepali_miti(2021, 6, 7)\n\u003e\u003e\u003e '2078-02-24'\n\n# Utils Section\n\n# checks if url resolves (sorry for the bad example but lol)\n\u003e\u003e\u003e from alamari.utils import *\n\u003e\u003e\u003e url_resolves('https://raw.githubusercontent.com/sarojbelbase/alamari/master/README.md')\n\u003e\u003e\u003e False\n\n# replace something from a text if you feel awkward\n\u003e\u003e\u003e replace('I love this alamari package', 'alamari', 'daraaazzz')\n\u003e\u003e\u003e 'I love this daraaazzz package'\n\n# get a datetime object from a string or text\n\u003e\u003e\u003e parse_date('2021, June 5th 5:55')\n\u003e\u003e\u003e datetime(2021, 6, 5, 5, 55)\n\n# pluralize the given singular unit\n\u003e\u003e\u003e pluralize('knife')\n\u003e\u003e\u003e 'knifes'\n\n# ordinalize the given number (I don't know why I added this util)\n\u003e\u003e\u003e ordinalize(34)\n\u003e\u003e\u003e '34th'\n\n# Humanize Section\n\n# humanize number in nepali form i.e yeti much crore, yeti lakh, yeti hajar YK\n\u003e\u003e\u003e from alamari.humanize import *\n\n\u003e\u003e\u003e number(12345675)\n\u003e\u003e\u003e '1,23,45,675'\n\n\u003e\u003e\u003e number(9.54)\n\u003e\u003e\u003e '09'\n\n# humanize datetime stuffs\n\u003e\u003e\u003e date(any_date = '2021-06-07 05:55:55.185035')\n\u003e\u003e\u003e '5 hours ago'\n\n# humanize nepali datetime\n\u003e\u003e\u003e nepal_date(local_date = '2021-06-07 05:55:55.185035')\n\u003e\u003e\u003e 'just now'\n```\n\n## Installation\n\n```shell\n$ pip install alamari\n```\n\n## Documentation\n\nHere's a thing mate. I want to be open about i.e. I didn't prepare any documents for it. You'll need to go inside the alamari folder and take a look inside each file. You have my permission to copy the code and modify it the way you want. But don't. I made this package for a reason \u0026 this exists for a reason. Why would you not respect my reason? Remember, every time you copy my code, I get a notification about your endeavor (telemetry magic)\n\n## Contribution\n\nTo be part of this blissful package, please add all the utils you want if you're tired of typing and copying again and again. While adding your utils please also add comments \u0026 docstrings to help people navigate through the pain they might hold for several years \u0026 I don't want to be remembered that way. Send all your issues and pull requests my way. Peace.\n\nNOTE: Please don't send your issues and pull requests on Fridays. You may not want to disturb me during my favorite day. If you do that, I'll press this auto-destroy button that I had built the other day \u0026 this package will be just a stardust.\n\nLet's see who wins, people who think this package is an absolute trash press that `star` button \u0026 people who think the other way press `fork` button and contribute.\n\n## Gratitude\n\nDevelopers who came here seeing their package being used by a guy with a terrible coding pattern, I want to say that I'm forever grateful for you and your existence. Long live OSS.\n\n### Made with ❤️ in Nepal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarojbelbase%2Falamari","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarojbelbase%2Falamari","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarojbelbase%2Falamari/lists"}