tinderdata
A very simple package to get insight on your Tinder usage.
Install
This code is compatible with all currently supported Python versions. Install it in your virtual enrivonment with:
python -m pip install tinderdata
Usage
This utility requires that you export your data from the Tinder platform, as described here.
You should obtain a single tinderdata.json file, which is the input required for this script.
With this package installed in the activated enrivonment, it can be called through python -m tinderdata or through a newly created tinderdata command.
Detailed usage goes as follows:
Usage: python -m tinderdata [OPTIONS] [DATA_PATH]
Get insight on your Tinder usage.
╭─ Arguments ──────────────────────────────────────────────────────────────────────────╮
│ data_path [DATA_PATH] Location, relative or absolute, of the exported JSON │
│ file with your user data. │
│ [default: None] │
╰──────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────╮
│ --show-figures --no-show-figures Whether or not to show figures │
│ when plotting insights. │
│ [default: no-show-figures] │
│ --save-figures --no-save-figures Whether or not to save figures │
│ when plotting insights. │
│ [default: no-save-figures] │
│ --log-level TEXT The base console logging level. │
│ Can be 'debug', 'info', 'warning' │
│ and 'error'. │
│ [default: info] │
│ --install-completion Install completion for the │
│ current shell. │
│ --show-completion Show completion for the current │
│ shell, to copy it or customize │
│ the installation. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────╯
An example command is then:
python -m tinderdata path_to_tinderdata.json --save-figures --log-level debug
The script print out a number of insight statements, and finally the text you should paste to get a Sankey diagram.
It will then create a plots folder and populate it with visuals.
You can otherwise import the high-level object from the package, and use at your convenience:
from tinderdata import TinderData
tinder = TinderData("path/to/tinderdata.json")
tinder.output_sankey_string()
tinder.plot_messages_loyalty(showfig=True, savefig=False)
Output example
Here are examples of the script's outputs:
MIT © 2019 Felix Soubelet
Release files for tinderdata 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tinderdata-0.4.2.tar.gz | 5.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tinderdata-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 MB
Release files / tinderdata-0.4.2.tar.gz
| Download URL | tinderdata-0.4.2.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3db02f1ca9e12822e00ce3e10ed7c15e020eb07351a54ff19c21cf547a45f2fb
|
|
BLAKE2b-256 checksum How to use checksums |
b5ba732470cfb76f99a593583055aaa9aed6374eafc5fb7d2e51d517aea7a829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / tinderdata-0.4.2-py3-none-any.whl
| Download URL | tinderdata-0.4.2-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0afb7e124074fb4f96ef726f67ae96b3983d8123aad91ee92b8751231c61688
|
|
BLAKE2b-256 checksum How to use checksums |
d7f5269ec9317c39b08ab93d7234dfb2cd5ca77a13079ea2d084a9e878922b1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|