Skip to main content

Share files like a dev.

Project description

bhej

Share files like a dev.

Installation

To install this cli to your environment, just run...

pip install bhej

...and you're good to go!

Usages

To upload a file, just run the following.

bhej up <filename>
# You'll receive a 6 digit code to share.
# You'll also get a link that you can directly download from.

To download a file, just run the following.

bhej down <code> # Use the 6 digit code from the upload step.

To download and import a dataframe, run the following.

from bhej.main import down as bhejdown, up as bhejup
df = bhejdown(<code>, return_df=True)

To download and import a file, run the following.

from bhej.main import down as bhejdown, up as bhejup
df = bhejdown(<code>, return_file=True)

Development

Want to contribute? After cloning and cd-ing into the project directory, you can run the following to get set up.

poetry shell    # Sets up virtual environment.
poetry install  # Installs dependencies.
which bhej      # Should return your local version of the CLI.

Deploying to PyPi

To deploy to Test PyPi, run poetry run deploy_staging. To deploy to the Prod PyPi, run poetry run deploy_prod.

To install it from Test PyPi, run the following.

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple bhej

To install from Prod PyPi, run pip install bhej.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bhej-0.1.7.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

bhej-0.1.7-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page