github-folder-downloader 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of github-folder-downloader might be problematic. Click here for more details.

@@ -0,0 +1,174 @@
1
+ Metadata-Version: 2.1
2
+ Name: github-folder-downloader
3
+ Version: 0.1.1
4
+ Summary: A tool to download files and folders from GitHub repositories
5
+ Home-page: https://github.com/soykot2910/github-folder-downloader
6
+ Author: Md.Soykot
7
+ Author-email: md.soykot2910@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: requests>=2.25.0
14
+
15
+ # GitHub Folder Downloader
16
+
17
+ A command-line tool to easily download files and folders from GitHub repositories. This tool allows you to download single files or entire directories from any public GitHub repository without needing to clone the entire repository.
18
+
19
+ ## Features
20
+
21
+ - Download single files from GitHub repositories
22
+ - Download entire folders recursively
23
+ - Simple command-line interface
24
+ - Support for both file URLs (blob) and folder URLs (tree)
25
+ - Customizable download location
26
+
27
+ ## Installation
28
+
29
+ ### Option 1: Install from PyPI
30
+
31
+ ```bash
32
+ pip install github-folder-downloader
33
+ ```
34
+
35
+ ### Option 2: Install from source
36
+
37
+ ```bash
38
+ # Clone the repository
39
+ git clone https://github.com/soykot2910/github-folder-downloader.git
40
+
41
+ # Navigate to the project directory
42
+ cd github-folder-downloader
43
+
44
+ # Install the package
45
+ pip install .
46
+ ```
47
+
48
+ ## Usage
49
+
50
+ ### Command Line Interface
51
+
52
+ 1. Basic usage:
53
+ ```bash
54
+ github-download <github-url>
55
+ ```
56
+
57
+ 2. Download a single file:
58
+ ```bash
59
+ github-download https://github.com/user/repo/blob/master/path/to/file.pdf
60
+ ```
61
+
62
+ 3. Download an entire folder:
63
+ ```bash
64
+ github-download https://github.com/user/repo/tree/master/docs
65
+ ```
66
+
67
+ 4. Specify custom output directory:
68
+ ```bash
69
+ github-download -o ./my-downloads https://github.com/user/repo/tree/master/docs
70
+ ```
71
+
72
+ 5. Interactive mode (if no URL provided):
73
+ ```bash
74
+ github-download
75
+ ```
76
+
77
+ ### Command Line Options
78
+
79
+ ```bash
80
+ github-download --help
81
+ ```
82
+
83
+ Available options:
84
+ - `-o, --output`: Specify output directory (default: ./downloaded_files)
85
+ - `-h, --help`: Show help message
86
+
87
+ ### Python Package Usage
88
+
89
+ You can also use it as a Python package in your code:
90
+
91
+ ```python
92
+ from github_downloader import download_from_github
93
+
94
+ # Download a single file
95
+ download_from_github(
96
+ "https://github.com/user/repo/blob/master/file.pdf"
97
+ )
98
+
99
+ # Download a folder to custom location
100
+ download_from_github(
101
+ "https://github.com/user/repo/tree/master/docs",
102
+ dest_folder="./my-downloads"
103
+ )
104
+ ```
105
+
106
+ ## URL Format Examples
107
+
108
+ ### For Files
109
+ ```
110
+ https://github.com/username/repository/blob/branch/path/to/file.ext
111
+ ```
112
+ Example:
113
+ ```
114
+ https://github.com/tensorflow/tensorflow/blob/master/README.md
115
+ ```
116
+
117
+ ### For Folders
118
+ ```
119
+ https://github.com/username/repository/tree/branch/path/to/folder
120
+ ```
121
+ Example:
122
+ ```
123
+ https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python
124
+ ```
125
+
126
+ ## Common Issues and Solutions
127
+
128
+ 1. **Permission Error**: If you get a permission error while downloading, make sure you have write permissions in the output directory.
129
+
130
+ 2. **Invalid URL Format**: Make sure your GitHub URL follows the correct format. It should contain either 'blob' (for files) or 'tree' (for folders).
131
+
132
+ 3. **Download Failed**: If downloads fail, check your internet connection and verify that the GitHub repository is public and accessible.
133
+
134
+ ## Requirements
135
+
136
+ - Python 3.6 or higher
137
+ - `requests` library (automatically installed with the package)
138
+
139
+ ## Development
140
+
141
+ Want to contribute? Great! Here's how:
142
+
143
+ 1. Fork the repository
144
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
145
+ 3. Install development dependencies:
146
+ ```bash
147
+ pip install -e .
148
+ ```
149
+ 4. Make your changes
150
+ 5. Commit your changes (`git commit -m 'Add some amazing feature'`)
151
+ 6. Push to the branch (`git push origin feature/amazing-feature`)
152
+ 7. Open a Pull Request
153
+
154
+ ## License
155
+
156
+ This project is licensed under the MIT License - see the LICENSE file for details.
157
+
158
+ ## Author
159
+
160
+ - Md.Soykot
161
+ - Email: md.soykot2910@gmail.com
162
+ - GitHub: [@soykot2910](https://github.com/soykot2910)
163
+
164
+ ## Support
165
+
166
+ If you encounter any issues or have questions, please:
167
+ 1. Check the [Common Issues](#common-issues-and-solutions) section
168
+ 2. Open an issue on GitHub
169
+ 3. Contact the author via email
170
+
171
+ ## Acknowledgments
172
+
173
+ - Thanks to GitHub for providing their API
174
+ - Inspired by the need to download specific parts of repositories without cloning
@@ -0,0 +1,160 @@
1
+ # GitHub Folder Downloader
2
+
3
+ A command-line tool to easily download files and folders from GitHub repositories. This tool allows you to download single files or entire directories from any public GitHub repository without needing to clone the entire repository.
4
+
5
+ ## Features
6
+
7
+ - Download single files from GitHub repositories
8
+ - Download entire folders recursively
9
+ - Simple command-line interface
10
+ - Support for both file URLs (blob) and folder URLs (tree)
11
+ - Customizable download location
12
+
13
+ ## Installation
14
+
15
+ ### Option 1: Install from PyPI
16
+
17
+ ```bash
18
+ pip install github-folder-downloader
19
+ ```
20
+
21
+ ### Option 2: Install from source
22
+
23
+ ```bash
24
+ # Clone the repository
25
+ git clone https://github.com/soykot2910/github-folder-downloader.git
26
+
27
+ # Navigate to the project directory
28
+ cd github-folder-downloader
29
+
30
+ # Install the package
31
+ pip install .
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ### Command Line Interface
37
+
38
+ 1. Basic usage:
39
+ ```bash
40
+ github-download <github-url>
41
+ ```
42
+
43
+ 2. Download a single file:
44
+ ```bash
45
+ github-download https://github.com/user/repo/blob/master/path/to/file.pdf
46
+ ```
47
+
48
+ 3. Download an entire folder:
49
+ ```bash
50
+ github-download https://github.com/user/repo/tree/master/docs
51
+ ```
52
+
53
+ 4. Specify custom output directory:
54
+ ```bash
55
+ github-download -o ./my-downloads https://github.com/user/repo/tree/master/docs
56
+ ```
57
+
58
+ 5. Interactive mode (if no URL provided):
59
+ ```bash
60
+ github-download
61
+ ```
62
+
63
+ ### Command Line Options
64
+
65
+ ```bash
66
+ github-download --help
67
+ ```
68
+
69
+ Available options:
70
+ - `-o, --output`: Specify output directory (default: ./downloaded_files)
71
+ - `-h, --help`: Show help message
72
+
73
+ ### Python Package Usage
74
+
75
+ You can also use it as a Python package in your code:
76
+
77
+ ```python
78
+ from github_downloader import download_from_github
79
+
80
+ # Download a single file
81
+ download_from_github(
82
+ "https://github.com/user/repo/blob/master/file.pdf"
83
+ )
84
+
85
+ # Download a folder to custom location
86
+ download_from_github(
87
+ "https://github.com/user/repo/tree/master/docs",
88
+ dest_folder="./my-downloads"
89
+ )
90
+ ```
91
+
92
+ ## URL Format Examples
93
+
94
+ ### For Files
95
+ ```
96
+ https://github.com/username/repository/blob/branch/path/to/file.ext
97
+ ```
98
+ Example:
99
+ ```
100
+ https://github.com/tensorflow/tensorflow/blob/master/README.md
101
+ ```
102
+
103
+ ### For Folders
104
+ ```
105
+ https://github.com/username/repository/tree/branch/path/to/folder
106
+ ```
107
+ Example:
108
+ ```
109
+ https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python
110
+ ```
111
+
112
+ ## Common Issues and Solutions
113
+
114
+ 1. **Permission Error**: If you get a permission error while downloading, make sure you have write permissions in the output directory.
115
+
116
+ 2. **Invalid URL Format**: Make sure your GitHub URL follows the correct format. It should contain either 'blob' (for files) or 'tree' (for folders).
117
+
118
+ 3. **Download Failed**: If downloads fail, check your internet connection and verify that the GitHub repository is public and accessible.
119
+
120
+ ## Requirements
121
+
122
+ - Python 3.6 or higher
123
+ - `requests` library (automatically installed with the package)
124
+
125
+ ## Development
126
+
127
+ Want to contribute? Great! Here's how:
128
+
129
+ 1. Fork the repository
130
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
131
+ 3. Install development dependencies:
132
+ ```bash
133
+ pip install -e .
134
+ ```
135
+ 4. Make your changes
136
+ 5. Commit your changes (`git commit -m 'Add some amazing feature'`)
137
+ 6. Push to the branch (`git push origin feature/amazing-feature`)
138
+ 7. Open a Pull Request
139
+
140
+ ## License
141
+
142
+ This project is licensed under the MIT License - see the LICENSE file for details.
143
+
144
+ ## Author
145
+
146
+ - Md.Soykot
147
+ - Email: md.soykot2910@gmail.com
148
+ - GitHub: [@soykot2910](https://github.com/soykot2910)
149
+
150
+ ## Support
151
+
152
+ If you encounter any issues or have questions, please:
153
+ 1. Check the [Common Issues](#common-issues-and-solutions) section
154
+ 2. Open an issue on GitHub
155
+ 3. Contact the author via email
156
+
157
+ ## Acknowledgments
158
+
159
+ - Thanks to GitHub for providing their API
160
+ - Inspired by the need to download specific parts of repositories without cloning
@@ -0,0 +1,174 @@
1
+ Metadata-Version: 2.1
2
+ Name: github-folder-downloader
3
+ Version: 0.1.1
4
+ Summary: A tool to download files and folders from GitHub repositories
5
+ Home-page: https://github.com/soykot2910/github-folder-downloader
6
+ Author: Md.Soykot
7
+ Author-email: md.soykot2910@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: requests>=2.25.0
14
+
15
+ # GitHub Folder Downloader
16
+
17
+ A command-line tool to easily download files and folders from GitHub repositories. This tool allows you to download single files or entire directories from any public GitHub repository without needing to clone the entire repository.
18
+
19
+ ## Features
20
+
21
+ - Download single files from GitHub repositories
22
+ - Download entire folders recursively
23
+ - Simple command-line interface
24
+ - Support for both file URLs (blob) and folder URLs (tree)
25
+ - Customizable download location
26
+
27
+ ## Installation
28
+
29
+ ### Option 1: Install from PyPI
30
+
31
+ ```bash
32
+ pip install github-folder-downloader
33
+ ```
34
+
35
+ ### Option 2: Install from source
36
+
37
+ ```bash
38
+ # Clone the repository
39
+ git clone https://github.com/soykot2910/github-folder-downloader.git
40
+
41
+ # Navigate to the project directory
42
+ cd github-folder-downloader
43
+
44
+ # Install the package
45
+ pip install .
46
+ ```
47
+
48
+ ## Usage
49
+
50
+ ### Command Line Interface
51
+
52
+ 1. Basic usage:
53
+ ```bash
54
+ github-download <github-url>
55
+ ```
56
+
57
+ 2. Download a single file:
58
+ ```bash
59
+ github-download https://github.com/user/repo/blob/master/path/to/file.pdf
60
+ ```
61
+
62
+ 3. Download an entire folder:
63
+ ```bash
64
+ github-download https://github.com/user/repo/tree/master/docs
65
+ ```
66
+
67
+ 4. Specify custom output directory:
68
+ ```bash
69
+ github-download -o ./my-downloads https://github.com/user/repo/tree/master/docs
70
+ ```
71
+
72
+ 5. Interactive mode (if no URL provided):
73
+ ```bash
74
+ github-download
75
+ ```
76
+
77
+ ### Command Line Options
78
+
79
+ ```bash
80
+ github-download --help
81
+ ```
82
+
83
+ Available options:
84
+ - `-o, --output`: Specify output directory (default: ./downloaded_files)
85
+ - `-h, --help`: Show help message
86
+
87
+ ### Python Package Usage
88
+
89
+ You can also use it as a Python package in your code:
90
+
91
+ ```python
92
+ from github_downloader import download_from_github
93
+
94
+ # Download a single file
95
+ download_from_github(
96
+ "https://github.com/user/repo/blob/master/file.pdf"
97
+ )
98
+
99
+ # Download a folder to custom location
100
+ download_from_github(
101
+ "https://github.com/user/repo/tree/master/docs",
102
+ dest_folder="./my-downloads"
103
+ )
104
+ ```
105
+
106
+ ## URL Format Examples
107
+
108
+ ### For Files
109
+ ```
110
+ https://github.com/username/repository/blob/branch/path/to/file.ext
111
+ ```
112
+ Example:
113
+ ```
114
+ https://github.com/tensorflow/tensorflow/blob/master/README.md
115
+ ```
116
+
117
+ ### For Folders
118
+ ```
119
+ https://github.com/username/repository/tree/branch/path/to/folder
120
+ ```
121
+ Example:
122
+ ```
123
+ https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python
124
+ ```
125
+
126
+ ## Common Issues and Solutions
127
+
128
+ 1. **Permission Error**: If you get a permission error while downloading, make sure you have write permissions in the output directory.
129
+
130
+ 2. **Invalid URL Format**: Make sure your GitHub URL follows the correct format. It should contain either 'blob' (for files) or 'tree' (for folders).
131
+
132
+ 3. **Download Failed**: If downloads fail, check your internet connection and verify that the GitHub repository is public and accessible.
133
+
134
+ ## Requirements
135
+
136
+ - Python 3.6 or higher
137
+ - `requests` library (automatically installed with the package)
138
+
139
+ ## Development
140
+
141
+ Want to contribute? Great! Here's how:
142
+
143
+ 1. Fork the repository
144
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
145
+ 3. Install development dependencies:
146
+ ```bash
147
+ pip install -e .
148
+ ```
149
+ 4. Make your changes
150
+ 5. Commit your changes (`git commit -m 'Add some amazing feature'`)
151
+ 6. Push to the branch (`git push origin feature/amazing-feature`)
152
+ 7. Open a Pull Request
153
+
154
+ ## License
155
+
156
+ This project is licensed under the MIT License - see the LICENSE file for details.
157
+
158
+ ## Author
159
+
160
+ - Md.Soykot
161
+ - Email: md.soykot2910@gmail.com
162
+ - GitHub: [@soykot2910](https://github.com/soykot2910)
163
+
164
+ ## Support
165
+
166
+ If you encounter any issues or have questions, please:
167
+ 1. Check the [Common Issues](#common-issues-and-solutions) section
168
+ 2. Open an issue on GitHub
169
+ 3. Contact the author via email
170
+
171
+ ## Acknowledgments
172
+
173
+ - Thanks to GitHub for providing their API
174
+ - Inspired by the need to download specific parts of repositories without cloning
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="github-folder-downloader",
5
- version="0.1.0",
5
+ version="0.1.1",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "requests>=2.25.0",
@@ -12,12 +12,12 @@ setup(
12
12
  'github-download=github_downloader.cli:main',
13
13
  ],
14
14
  },
15
- author="Your Name",
16
- author_email="your.email@example.com",
15
+ author="Md.Soykot",
16
+ author_email="md.soykot2910@gmail.com",
17
17
  description="A tool to download files and folders from GitHub repositories",
18
18
  long_description=open("README.md").read(),
19
19
  long_description_content_type="text/markdown",
20
- url="https://github.com/yourusername/github-folder-downloader",
20
+ url="https://github.com/soykot2910/github-folder-downloader",
21
21
  classifiers=[
22
22
  "Programming Language :: Python :: 3",
23
23
  "License :: OSI Approved :: MIT License",
@@ -1,19 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: github-folder-downloader
3
- Version: 0.1.0
4
- Summary: A tool to download files and folders from GitHub repositories
5
- Home-page: https://github.com/yourusername/github-folder-downloader
6
- Author: Your Name
7
- Author-email: your.email@example.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.6
12
- Description-Content-Type: text/markdown
13
- Requires-Dist: requests>=2.25.0
14
-
15
- # GitHub Folder Downloader
16
-
17
- A simple Python package to download files and folders from GitHub repositories.
18
-
19
- ## Installation
@@ -1,5 +0,0 @@
1
- # GitHub Folder Downloader
2
-
3
- A simple Python package to download files and folders from GitHub repositories.
4
-
5
- ## Installation
@@ -1,19 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: github-folder-downloader
3
- Version: 0.1.0
4
- Summary: A tool to download files and folders from GitHub repositories
5
- Home-page: https://github.com/yourusername/github-folder-downloader
6
- Author: Your Name
7
- Author-email: your.email@example.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.6
12
- Description-Content-Type: text/markdown
13
- Requires-Dist: requests>=2.25.0
14
-
15
- # GitHub Folder Downloader
16
-
17
- A simple Python package to download files and folders from GitHub repositories.
18
-
19
- ## Installation