#🔒 publishing python package/program

20 messages · Page 1 of 1 (latest)

lost plank
#

is there any recommended guidance for publishing a python package as an executable (e.g lets say im making a CLI and want to distribute it), also it's private so i cant really publish to pypi

sullen inletBOT
#

@lost plank

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

toxic galleon
raven cedar
toxic galleon
#

and remember that secrets such as API keys are trivial to extract even if you obfuscate it, anything you send in a network request can and will be intercepted by malicious users

if the user owns the device the code's running in, that is the case even for https

raven cedar
#

There is no universal solution to protecting code. He can use multiple techniques to protect his code. he can use obfuscation on some part and can use encryption for important data. So the amount of protection he wants to add will depend on the knowledge of the person whom he wants to protect his code from

lost plank
urban patio
#

Is it in a professional context?

lost plank
urban patio
#

That said, hosting a repository is a different thing from distributing tools for your teams

heady carbon
lost plank
#

as in jfrog artifactory? no we don't and i wouldnt want to spin up a private pypi for one thing anyway lol

#

alternatively i guess people could git clone the code and pip install it (assuming they have python already)

heady carbon
#

pip install git+https://github.com/username/packagename

cursive osprey
#

No internal wheel host?

sullen inletBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.