You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get started with the BeatPrints CLI, you'll need to set up a configuration file.
84
+
Here’s a short video showing how to generate posters using the CLI. For more information refer to the documentation [here](https://beatprints.readthedocs.io/en/latest/guidebook/cli.html)
85
85
86
-
### Windows
87
-
88
-
1. Create a folder named `BeatPrints` in the following directory:
2. Inside this folder, create a file called `config.toml` with the following contents:
95
-
96
-
```toml
97
-
[general]
98
-
search_limit = 7
99
-
output_directory = "<path-to-save-your-posters>"
100
-
101
-
[credentials]
102
-
client_id = "your-client-id"
103
-
client_secret = "your-client-secret"
104
-
```
105
-
106
-
Replace `<path-to-save-your-posters>` with the path where you'd like to save the generated posters, and fill in the `client_id` and `client_secret` with your Spotify credentials.
107
-
108
-
### Linux or macOS
109
-
110
-
1. Create a folder named `BeatPrints` in your `~/.config/` directory:
111
-
112
-
```python
113
-
~/.config/BeatPrints/
114
-
```
115
-
116
-
3. Inside this folder, create a file called `config.toml` with the same contents as mentioned above.
117
-
118
-
### Running the CLI
119
-
120
-
Once the config file is set up, you can run the BeatPrints CLI:
121
-
122
-
1. Open your terminal.
123
-
2. Type `beatprints` and press Enter.
124
-
125
-
Your poster will be saved in the output directory you specified in the `config.toml` file.
To get started with the BeatPrints CLI, you'll need to set up a configuration file.
5
+
6
+
Windows
7
+
~~~~~~~
8
+
9
+
1. Create a folder named ``BeatPrints`` in the following directory:
10
+
11
+
.. code:: python
12
+
13
+
C:\Users\<YourUsername>\AppData\Roaming\
14
+
15
+
2. Inside this folder, create a file called ``config.toml`` with the
16
+
following contents:
17
+
18
+
.. code:: toml
19
+
20
+
[general]
21
+
search_limit = 7
22
+
output_directory = "<path-to-save-your-posters>"
23
+
24
+
[credentials]
25
+
client_id = "your-client-id"
26
+
client_secret = "your-client-secret"
27
+
28
+
Replace ``<path-to-save-your-posters>`` with the path where you'd like to save the generated posters, and fill in the ``client_id`` and ``client_secret`` with your Spotify credentials.
29
+
30
+
31
+
.. important::
32
+
33
+
If you're using **Windows**, please ensure you use **double backslashes** (``\\``) rather than a single backslash when specifying your output path. For example:
Copy file name to clipboardExpand all lines: docs/index.rst
+8-50Lines changed: 8 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ keys:
49
49
50
50
.. code:: python
51
51
52
-
SPOTIFY_CLIENT_ID=""
53
-
SPOTIFY_CLIENT_SECRET=""
52
+
SPOTIFY_CLIENT_ID="<your-client-id>"
53
+
SPOTIFY_CLIENT_SECRET="<your-client-secret>"
54
54
55
55
You can get these from the `Spotify Developer Dashboard <https://developer.spotify.com/dashboard/>`_ by creating a new app with **Web API** as the scope.
56
56
@@ -76,7 +76,7 @@ Here’s how you can create your first poster:
76
76
sp = spotify.Spotify(CLIENT_ID, CLIENT_SECRET)
77
77
78
78
# Search for a track
79
-
search = sp.get_track("Juno Clairo", limit=1)
79
+
search = sp.get_track("Saturn - SZA", limit=1)
80
80
81
81
# Get the track's metadata and lyrics
82
82
metadata = search[0]
@@ -86,55 +86,13 @@ Here’s how you can create your first poster:
86
86
# Generate the track poster
87
87
ps.track(metadata, highlighted_lyrics)
88
88
89
-
🥞 CLI Setup
90
-
------------
89
+
🥞 CLI
90
+
------
91
91
92
-
To get started with the BeatPrints CLI, you'll need to set up a configuration file.
92
+
Here’s a short video showing how to generate posters using the CLI. For more information refer to the documentation `here <https://beatprints.readthedocs.io/en/latest/guidebook/cli.html>`_
93
93
94
-
Windows
95
-
~~~~~~~
96
-
97
-
1. Create a folder named ``BeatPrints`` in the following directory:
2. Inside this folder, create a file called ``config.toml`` with the
104
-
following contents:
105
-
106
-
.. code:: toml
107
-
108
-
[general]
109
-
search_limit = 7
110
-
output_directory = "<path-to-save-your-posters>"
111
-
112
-
[credentials]
113
-
client_id = "your-client-id"
114
-
client_secret = "your-client-secret"
115
-
116
-
Replace ``<path-to-save-your-posters>`` with the path where you'd like to save the generated posters, and fill in the ``client_id`` and ``client_secret`` with your Spotify credentials.
117
-
118
-
Linux or macOS
119
-
~~~~~~~~~~~~~~
120
-
121
-
1. Create a folder named ``BeatPrints`` in your ``~/.config/`` directory:
122
-
123
-
.. code:: python
124
-
125
-
~/.config/BeatPrints/
126
-
127
-
2. Inside this folder, create a file called ``config.toml`` with the same contents as mentioned above.
128
-
129
-
Running the CLI
130
-
~~~~~~~~~~~~~~~
131
-
132
-
Once the config file is set up, you can run the BeatPrints CLI:
133
-
134
-
1. Open your terminal.
135
-
2. Type ``beatprints`` and press Enter.
136
-
137
-
Your poster will be saved in the output directory you specified in the ``config.toml`` file.
I really appreciate that you want to contribute! Feel free to create an issue on the GitHub page. Just keep in mind that I started this project for fun, so actively maintaining it can be tough for me. I’m not always able to dedicate a lot of time, but I truly appreciate all ideas and contributions, and I’ll try my best to work on it when I can. Your suggestions are always welcome!
19
-
20
-
How do I fix the libraqm error?
21
-
-------------------------------
22
-
23
-
If you encounter this following error:
24
-
25
-
.. code::
26
-
27
-
"KeyError: 'setting text direction, language or font features is not supported without libraqm'"
28
-
29
-
For Windows Users
30
-
~~~~~~~~~~~~~~~~~
31
-
You can resolve this by downloading ``fribidi.dll`` from `here <https://www.dllme.com/dll/files/fribidi>`_ and placing it in your Python directory, such as:
32
-
33
-
.. code::
34
-
35
-
C:\Program Files\Python312\
36
-
37
-
For macOS Users
38
-
~~~~~~~~~~~~~~~
39
-
If you run into the same issue, fix it by reinstalling Pillow with the correct configuration:
0 commit comments