{"id":20321467,"url":"https://github.com/jagthefriend/complex-api","last_synced_at":"2025-06-14T22:38:21.573Z","repository":{"id":53016354,"uuid":"347427253","full_name":"JagTheFriend/Complex-API","owner":"JagTheFriend","description":"This a python module made to allow users to easily use the API I have made/working on","archived":false,"fork":false,"pushed_at":"2021-04-26T19:13:58.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T13:54:20.518Z","etag":null,"topics":["complex-api","python-3"],"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/JagTheFriend.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":"2021-03-13T16:57:07.000Z","updated_at":"2021-12-01T09:12:43.000Z","dependencies_parsed_at":"2022-09-08T08:25:24.513Z","dependency_job_id":null,"html_url":"https://github.com/JagTheFriend/Complex-API","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/JagTheFriend%2FComplex-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FComplex-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FComplex-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FComplex-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JagTheFriend","download_url":"https://codeload.github.com/JagTheFriend/Complex-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827078,"owners_count":20026599,"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":["complex-api","python-3"],"created_at":"2024-11-14T19:15:23.542Z","updated_at":"2025-03-04T09:44:04.516Z","avatar_url":"https://github.com/JagTheFriend.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Complex API.py\nThis the source code for the python module I have built/working on.\n\nThis module makes it easy to use my [API](https://github.com/JagTheFriend/APICode)\n\nCurrently, the API supports:\n  + compiling the code(of different languages) and getting the output\n  + getting a random post from a _subreddit_\n  + getting the lyrics of a song\n\n  + generating pixel art\n  + getting the weather of a place\n  + finding the length of a youtube playlist\n\n  + getting a random inspirational text\n  + getting a result of a calculation\n  + converting hexadecimal to decimal(or denary)\n  + converting decimal(or denary) to binary\n\n\n# Code snippets\nIn order to use the API,\nyou need to first download [this module (`pip install Complex-API`)](https://pypi.org/project/Complex-API/)\n\n## Compile API:\n[Example:](https://github.com/JagTheFriend/Complex-API/pulls)\n```py\nfrom Complex_API import complex_api\n# run python\nlang = \"python\"\ncode = '''\nprint('hello')\n'''\nprint(complex_api.compile(lang=lang, code=code))\n# run java\nlang = \"java\"\ncode = '''\nclass Compiler{\n    public static void main(String[] args){\n        System.out.println(\"This works\");\n    }\n}\n'''\nprint(complex_api.compile(lang=lang, code=code))\n```\n[Get all the supported languages here](https://API.jagthefriend.repl.co/compile=support_support)\n\n## Reddit API:\n[Example:](https://API.jagthefriend.repl.co/reddit=meme+10)\n```py\nfrom Complex_API import complex_api\n# example: name_of_subreddit = \"meme\"\nname_of_subreddit = \"name_of_a_valid_subreddit\"\nnumber_of_posts = 10 # number of posts to be returned\nprint(complex_api.reddit(limit=number_of_posts, subreddit=name_of_subreddit))\n```\n\n## Lyrics API:\n[Example:](https://API.jagthefriend.repl.co/lyrics+falling)\n```py\nfrom Complex_API import complex_api\nSongName = \"name of song\"\nprint(complex_api.lyrics(song=SongName))\n```\n\n## Pixel Art:\n[Example:](https://API.jagthefriend.repl.co/ascii_hello)\n```py\nfrom Complex_API import complex_api\ntext = \"Hello gammer\"\nprint(complex_api.ascii(text=text))\n```\n\n## Weather API:\n[Example:](https://API.jagthefriend.repl.co/temp=America+metric)\n```py\nfrom Complex_API import complex_api\n# example: place = Cape Town\nplace = \"name of a place\"\nunit = \"metric\" # or imperial\nprint(complex_api.temp(place=place, unit=unit))\n```\n\n## Youtube Playlist length finder:\n[Example:](https://API.jagthefriend.repl.co/length+PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H)\n```py\nfrom Complex_API import complex_api\n# example URL: https://www.youtube.com/playlist?list=PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H\n# id = PL59LTecnGM1OGgddJzY-0r8vdqibi3S2H\nplay_list_link = \"id\"\nprint(complex_api.length(playlist=play_list_link))\n```\n\n## Calculator:\n[Example:](https://API.jagthefriend.repl.co/cal_6*9+6+9)\n```py\nfrom Complex_API import complex_api\nformula = \"6*9+6+9\"\nprint(complex_api.calculator(formula=formula))\n```\n\n## Inspire API:\n[Example:](https://API.jagthefriend.repl.co/inspire)\n```py\nfrom Complex_API import complex_api\nprint(complex_api.inspire())\n```\n\n## Hexadecimal to Decimal(or Denary) converter:\n[Example:](https://API.jagthefriend.repl.co/hex+ABCDEF)\n```py\nfrom Complex_API import complex_api\nformula = \"A6B9C1D1E1\"\nprint(complex_api.hex_to_denary(hex_code=formula))\n```\n\n## Decimal(or Denary) to Binary converter:\n[Example:](https://API.jagthefriend.repl.co/binary=1969)\n```py\nfrom Complex_API import complex_api\nformula = \"45713\" # any number\nprint(complex_api.binary_to_denary(binary=formula))\n```\n\n## Talk to my chatbot:\n[Example:](https://API.jagthefriend.repl.co/ai_\"Hello\")\n```py\nfrom Complex_API import complex_api\ntext = \"Hi\" # any text\nprint(complex_api.ai(text=text))\n```\n\nIf you find any bugs _or have new ideas_,\n\nFeel free to raise a \u003cbr\u003e\n[new issue](https://github.com/JagTheFriend/Complex-API/issues)\n\u003cbr\u003e\nOr a \u003cbr\u003e\n[pull request](https://github.com/JagTheFriend/Complex-API/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fcomplex-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagthefriend%2Fcomplex-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fcomplex-api/lists"}