imagehoster-python-client: A python client for SteemitImages
utopian-io·@emrebeyler·
0.000 HBDimagehoster-python-client: A python client for SteemitImages
#### Repository - [https://github.com/emre/imagehoster-python-client](https://github.com/emre/imagehoster-python-client) [Imagehoster](https://github.com/steemit/imagehoster) is the project powers the images you upload at Steemit. It's an interesting project because **only** STEEM accounts can upload files here by signing the image content with their posting key. You can get more [details](https://github.com/steemit/imagehoster) on the ImageHoster README. *** [imagehoster-python-client](https://github.com/emre/imagehoster-python-client) is the python client of the steemitimages. You can upload images to steemitimages in your python applications. ##### Installation ``` $ (sudo) pip install imagehoster ``` ##### Usage ``` image_uploader = ImageUploader( steem_username, private_posting_key, ) resp = image_uploader.upload("/path/to/image.png) if 'url' in resp: print("File uploaded: %s" % resp["url"]) else: print(resp) ``` ##### Using the CLI APP <img src="https://steemit-production-imageproxy-upload.s3.amazonaws.com/DQmdws8Jofne1WEds361YJhqNDhNUidhQuGuucqbhRdavAL"> <center><sup><i>imagehosterception</i></sup></center> Once you have installed the package via pip, you have also a CLI app installed. Make sure you have set environment variables first: ``` export IMAGEHOSTER_USERNAME=emrebeyler export IMAGEHOSTER_POSTING_WIF=PRIVATE_POSTING_WIF ``` Then... ``` $ imagehoster qq.jpeg File uploaded: https://steemitimages.com/DQmZNzWiHHSJGdPjTXDAmeZEW5G84z47uSKbR9shABJRRaL/image ``` ##### Notes - If you set up your own imagehoster server instance, all you need to do is change the ```image_uploader_instance.API_BASE_URL``` to your URL. - Have a look at [here](https://github.com/marvin-we/steemj-image-upload) to see the java version of the same functionality. - Have a look at [here](https://github.com/steemit/condenser/blob/b4579bf0fccf17b846e9bd27b4f77b615ceb2036/src/app/redux/UserSaga.js#L571) to see the implementation on [Condenser](https://github.com/steemit/condenser/) #### Technology Stack Code runs on Python 3.6+. It may run on previous versions of py3k, but didn't tried it myself. #### Roadmap It works fine at the moment. Since the server doesn't have many options, there is nothing to add more. #### How to Contribute Contribution process is same as any other open-source project. You can check out open issues at Github and can start working. Just make sure, you will comment on the related issue before starting working on it. #### GitHub Account [https://github.com/emre](https://github.com/emre)
👍 emrebeyler, jinzo, eddiespino, steemitstats, swaze, igienistamentale, evilest-fiend, crmilazz, siberkomutan, piesmen, bobdos, trollshunter, elchin, tolgahanuzun, zcool, bigboy9, wagner32, reazuliqbal, linco, ethemkibar, trupvote, ornitorenk, marcopasha, ogergami, sertes, a-alphasteem, boontjie, teamhumble, peri, acun, doodleman, fotobot, intelligencer, buzzbeergeek, dadview, adventureevryday, steemitcitizen, simplifylife, kriptonoob, hahajin, pharesim, derrick829, agememnon, firatozbek, lastozgur, hatakekakashi, flugschwein, tinowhale, akislam, siriusgaia, toninux, smafey, jacobkaled, rightscomet, nudgent, enjoyy, thinkermyles, lukecreed, fromhell2sky, gjones15, nagaclub, khairulfahmi92, carment, andreas-winkler, roxso, rechellomataro, kryptorero, bahagia9, gydronium, clevershovel, sbd-fairy, hemo, votebott, khaliloff, ewq, ruel.cedeno, leticiapereira, kagantrky, googletr, a-steemdefleague, isnochys, senseofhumor, ucmuharfli, dianna1, azfix, faithvarron, decebal2dac, themanualbot, sebastiaaanb, uzerebru, sulwati, kiddarko, krazypoet, mrmaracucho, hyroniz, uzercanan, oyundelisi, a-cmsidl, frellarong, muhittinabi, nounou, steemcanvas, tentalavera, iwanderela, leofahmi, sambillingham, eyupyusuf, holger80, keepcalmandread, arafs, kriptokalesi, matsayisi, golge, ihh, melissakellie, tuanis, buildawhale, dexterflux, minnowbooster, zazelpop, camillesteemer, espoem, danielsaori, qurator-tier-1-2, edsonl, xinta, daiky69, utopian-io, kosynier, privacybydesign, joyfulstar, therysmythe1, zakaryhayhurst, therysmythe, tatyana.brandon, wonderwomancodes, syambadin32, sasyi32, romeotwynam3, robinabarney, rofilm, nurmasyithah, lorchen.nash, blackcattt, misalen, crypto-france, pynchon, stephenkendal, cryptocrates, planet-power, dylanhobalart, iven.emsworth, steemittopfan, astipmonkey, aloader, ilikesteemit, mex-power, blankrained, azobifly, besttopsteemer, da-dawn, steemgreen, tyramisoux,