Adding vim plugin to save and load from pastila.nl#32
Draft
Adding vim plugin to save and load from pastila.nl#32
Conversation
- Replace requests by embedded urllib - Add type hinting - Make file loadable by `__name__ = "__main__"` - Make "fingerprint" a random in the `save` url - Use f-strings - Use urlparse instead of regexps
Member
Author
|
We need to think of parametric |
Member
Author
|
There was a problem hiding this comment.
Pull Request Overview
This PR refactors a Python script for uploading/downloading content to/from pastila.nl, modernizing the code with improved type hints, error handling, and styling. The changes focus on replacing the requests library with urllib, adding type annotations, and improving code structure.
- Modernized import statements and added comprehensive type hints
- Replaced
requestslibrary with Python's built-inurllibfor HTTP requests - Simplified the save function to always encrypt content and improved URL parsing in load function
Member
Author
|
Following plan: adding the vim plugin to read buffer from or post to Pastila. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.