{"id":17880522,"url":"https://github.com/igorbenav/stripemetrics","last_synced_at":"2025-04-08T01:45:07.142Z","repository":{"id":192491076,"uuid":"529130394","full_name":"igorbenav/stripemetrics","owner":"igorbenav","description":"Get the data from stripe and process it using python in a easier and more open manner.","archived":false,"fork":false,"pushed_at":"2023-03-16T01:51:41.000Z","size":18,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T06:48:19.800Z","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/igorbenav.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}},"created_at":"2022-08-26T05:43:06.000Z","updated_at":"2024-10-14T20:52:28.000Z","dependencies_parsed_at":"2023-09-04T22:35:53.852Z","dependency_job_id":null,"html_url":"https://github.com/igorbenav/stripemetrics","commit_stats":null,"previous_names":["igormagalhaesr/stripemetrics","igorbenav/stripemetrics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Fstripemetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Fstripemetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Fstripemetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorbenav%2Fstripemetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorbenav","download_url":"https://codeload.github.com/igorbenav/stripemetrics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761030,"owners_count":20991533,"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":"2024-10-28T12:18:47.036Z","updated_at":"2025-04-08T01:45:07.107Z","avatar_url":"https://github.com/igorbenav.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stripemetrics \n___\n\u003e Compute metrics using stripe data and python \n\n\u003e **Warning**\n\u003e This is still under development\n\n## What is stripemetrics?\n\n**stripemetrics** is a Python package that makes it easier for you to track metrics such as MRR, Churn and many more. \nIt uses the stripe API to get the data, then computes your desired metrics.\n\n## Features\n\n  - Getting data from stripe API with **get_data()**\n  - Monthly Recurring Revenue\n  - Number of active users\n  - Churn\n  - Metrics by product\n  \n## Usage \n\nImporting stripemetrics:\n```python\nimport stripemetrics\n```\n\nGetting Subscription data from stripe:\n```python\nget_data('Subscription', status='all', api_key='YOUR_STRIPE_KEY')\n```\nPick one resource from Subscription, Product, Charge, etc\n\n### Base Metrics:\n- active_subscriptions\n- active_subscribers\n- new_subscribers\n- new_subscriptions\n- churn_dates\n- subscription_churn_dates\n- subscription_churn_dates\n- churned_subscriptions\n\n### Charge Metrics:\n- total_revenue\n- total_refunded\n- total_refunds\n\n### Subscription Metrics:\n- total_mrr\n- revenue_per_subscriber\n- mrr_per_customer\n- churned_subscribers_rate\n- subscribers_retention_rate\n- churned_subscriptions_rate\n- subscription_retention_rate\n\n\u003e **Note**\n\u003e Some of the metrics mentioned need data enrichment (usually when using product filters), that is provided with the enrich_subscriptions and enrich_charges functions.\n\n## Contributing\n\n1. Fork it (https://github.com/igormagalhaesr/stripemetrics)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n## Dependencies\n\n- [NumPy](https://www.numpy.org)\n- [Pandas](https://pandas.pydata.org/)\n- ...\n\n## License\n\nDistributed under the [BSD 3](LICENSE.txt) license. See ``LICENSE.txt`` for more information. \n\n## Contact\n\nIgor Magalhaes – [@igormagalhaesr](https://twitter.com/igormagalhaesr) – igormagalhaesr@gmail.com\n\n[github.com/igormagalhaesr](https://github.com/igormagalhaesr/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbenav%2Fstripemetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorbenav%2Fstripemetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorbenav%2Fstripemetrics/lists"}