Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b14c855cc9 | |||
| f1a17cb4e7 | 
| @@ -25,19 +25,19 @@ printer via USB. | ||||
| Usage | ||||
| ----- | ||||
|  | ||||
| ```partdb-labeler -h``` will show you the available options. | ||||
| ```partdb_labeler -h``` will show you the available options. | ||||
|  | ||||
| For convenience, you might also consider adding a short shell script somewhere in your PATH that will call the Python module | ||||
| with your server configuration.  I use this (the API key is a read-only key I've publicized elsewhere): | ||||
|  | ||||
| ``` | ||||
| #!/usr/bin/env bash | ||||
| partdb-labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 $* | ||||
| partdb_labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 $* | ||||
| ``` | ||||
|  | ||||
| or the same, as a batch file on Windows: | ||||
|  | ||||
| ``` | ||||
| @echo off | ||||
| partdb-labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 %* | ||||
| partdb_labeler -p https://partdb.alfter.us -k tcp_673fc81f0b7837ca4c029fbd6536b27742eb8b742eba27bf547c8136dc6a84f8 %* | ||||
| ``` | ||||
|   | ||||
							
								
								
									
										4
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
									
									
									
									
								
							| @@ -6,7 +6,7 @@ with open("README.md", "r") as fh: | ||||
|  | ||||
| setup( | ||||
|     name="partdb_labeler", | ||||
|     version="0.2", | ||||
|     version="0.2.1", | ||||
|     description="PartDB Labeler", | ||||
|     long_description=long_description, | ||||
|     long_description_content_type="text/markdown", | ||||
| @@ -20,5 +20,5 @@ setup( | ||||
|         "qrcode",  | ||||
|         "pillow" | ||||
|     ], | ||||
|     entry_points={"console_scripts": ["partdb-labeler = partdb_labeler.partdb_labeler:cli"]} | ||||
|     entry_points={"console_scripts": ["partdb_labeler = partdb_labeler.partdb_labeler:cli"]} | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user