[GH-ISSUE #712] rename '.cache' #425

Open
opened 2026-02-27 23:22:33 +03:00 by kerem · 5 comments
Owner

Originally created by @0xbrayo on GitHub (Jul 27, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/712

The .cache filename clashes with the .cache directory found on the linux '~/home' directory. Simply renaming the .cache file to something more unique would solve this problem. I would suggest renaming it to .sp_cache or something more descriptive like spotipy_cache file.

Originally created by @0xbrayo on GitHub (Jul 27, 2021). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/712 The .cache filename clashes with the .cache directory found on the linux '~/home' directory. Simply renaming the .cache file to something more unique would solve this problem. I would suggest renaming it to .sp_cache or something more descriptive like spotipy_cache file.
Author
Owner

@0xbrayo commented on GitHub (Jul 27, 2021):

if I get the green light I can open a PR and fix it by the weekend

<!-- gh-comment-id:887804300 --> @0xbrayo commented on GitHub (Jul 27, 2021): if I get the green light I can open a PR and fix it by the weekend
Author
Owner

@stephanebruckert commented on GitHub (Jul 28, 2021):

As this is a backward-incompatible change, it would be fine for the v3 branch

See https://github.com/plamere/spotipy/issues/652

<!-- gh-comment-id:887956423 --> @stephanebruckert commented on GitHub (Jul 28, 2021): As this is a backward-incompatible change, it would be fine for the [v3](https://github.com/plamere/spotipy/tree/v3) branch See https://github.com/plamere/spotipy/issues/652
Author
Owner

@Peter-Schorn commented on GitHub (Jul 28, 2021):

It should also be noted that you can specify whatever cache path you want if the default conflicts with other files.

<!-- gh-comment-id:887966336 --> @Peter-Schorn commented on GitHub (Jul 28, 2021): It should also be noted that you can specify whatever cache path you want if the default conflicts with other files.
Author
Owner

@clemwo commented on GitHub (Feb 22, 2022):

It should also be noted that you can specify whatever cache path you want if the default conflicts with other files.

How do you do that?

<!-- gh-comment-id:1048145817 --> @clemwo commented on GitHub (Feb 22, 2022): > It should also be noted that you can specify whatever cache path you want if the default conflicts with other files. How do you do that?
Author
Owner

@Peter-Schorn commented on GitHub (Feb 23, 2022):

Since the last post on this thread, the API has changed somewhat. Here's how to specify the cache path—that is, the file in which the authorization information is stored—when creating an instance of Spotify:

spotify = Spotify(
    auth_manager=SpotifyOAuth(
        cache_handler=CacheFileHandler(cache_path="/path/to/cache")
    )
)
<!-- gh-comment-id:1048360819 --> @Peter-Schorn commented on GitHub (Feb 23, 2022): Since the last post on this thread, the API has changed somewhat. Here's how to specify the cache path—that is, the file in which the authorization information is stored—when creating an instance of `Spotify`: ```python spotify = Spotify( auth_manager=SpotifyOAuth( cache_handler=CacheFileHandler(cache_path="/path/to/cache") ) ) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#425
No description provided.