{"id":26678333,"url":"https://github.com/telexintegrations/tunebase","last_synced_at":"2025-03-26T05:15:29.706Z","repository":{"id":278884738,"uuid":"937071287","full_name":"telexintegrations/Tunebase","owner":"telexintegrations","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T09:37:38.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T10:24:53.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telexintegrations.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-22T09:06:03.000Z","updated_at":"2025-02-22T09:37:41.000Z","dependencies_parsed_at":"2025-02-22T10:24:58.066Z","dependency_job_id":"f42cd081-a6b4-41f9-a2c9-ce315d62b886","html_url":"https://github.com/telexintegrations/Tunebase","commit_stats":null,"previous_names":["telexintegrations/tunebase"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2FTunebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2FTunebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2FTunebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telexintegrations%2FTunebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telexintegrations","download_url":"https://codeload.github.com/telexintegrations/Tunebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591532,"owners_count":20640692,"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":[],"created_at":"2025-03-26T05:15:28.972Z","updated_at":"2025-03-26T05:15:29.697Z","avatar_url":"https://github.com/telexintegrations.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎵 Tunebase\n\n**Tunebase** is an integration that fetches trending music from **LASTFM API** and allows data transmission to **Telex**.\n\n---\n\n## 🚀 Features\n- Fetches **top trending music** from Lastfm.\n- Supports **country-based filtering** (Kenya, Nigeria, United States, etc.).\n- Allows **genre selection** (Afrobeats, Jazz, Pop, etc.).\n- Configurable **song limit**.\n- Integrates with **Telex** for data transmission.\n\n---\n\n## 🛠 Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/telexintegrations/Tunebase.git\n   cd tunebase\n   ```\n\n2. **Create a virtual environment:**\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Set up environment variables:**\n   - Create a `.env` file in the root directory and add:\n     ```ini\n     LASTFM_API_KEY=your_lastfm_api_key\n     TELEX_API_KEY=your_telex_api_key\n     ```\n\n---\n\n## 🎵 Usage\n\n### Running the Flask API\n\nStart the Flask server:\n```bash\npython3 run.py\n```\n\n### Fetch trending music\n\nTo fetch trending music, create a test.py file:\n```ini\nimport requests\nfrom app.fetch_music import get_trending_music\n\ndef main():\n    music_data = get_trending_music(limit=10, country=\"Kenya\", preferred_genres=[\"jazz\"])\n    print(\"Music Data:\", music_data)\n\nif __name__ == \"__main__\":\n    main()\n\n```\n\nRun test.py:\n```bash\npython3 test.py\n```\n\n\n## ⚙️ API Reference\n\n\n**Endpoint:**  \n`GET /integration.json`\n\n---\n\n## 📂 Project Structure\n\n```\ntunebase/\n│── app/                     # Main application directory\n│   ├── __init__.py          # Initializes Flask app\n│   ├── routes.py            # Defines API endpoints\n│   ├── fetch_music.py       # Fetches trending music from Spotify API\n│   ├── config.py            # Configuration settings\n│   ├── utils.py             # Helper functions (send data to Telex)\n│── tunebase.json            # Telex Integration JSON file\n│── requirements.txt         # Dependencies\n│── run.py                   # Flask app entry point\n│── README.md                # Project documentation\n```\n\n---\n\n## 🤝 Contributing\n\n- Fork the repo, create a new branch, and submit a pull request.\n- Report bugs or suggest features in the Issues section.\n\n---\n\n## 📜 License\n\nMIT License © 2025 Mukeli","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftunebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelexintegrations%2Ftunebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelexintegrations%2Ftunebase/lists"}