Saravanan666/pypi-org huggingface dataset:
Package: ghost-client
# Unofficial Ghost API client[![Travis](https://img.shields.io/travis/rycus86/ghost-client.svg)](https://travis-ci.org/rycus86/ghost-client)[![PyPI](https://img.shields.io/pypi/v/ghost-client.svg)](https://pypi.python.org/pypi/ghost-client)[![PyPI](https://img.shields.io/pypi/pyversions/ghost-client.svg)](https://pypi.python.org/pypi/ghost-client)[![Coverage Status](https://coveralls.io/repos/github/rycus86/ghost-client/badge.svg?branch=master)](https://coveralls.io/github/rycus86/ghost-client?branch=master)[![Maintainability](https://api.codeclimate.com/v1/badges/45f2a5020caa37777f5a/maintainability)](https://codeclimate.com/github/rycus86/ghost-client/maintainability)This is a client library for the [Ghost blogging platform API](https://api.ghost.org).## Installation```shell$ pip install ghost-client```## UsageSee [https://api.ghost.org](https://api.ghost.org/) for documentation on the REST endpoints and available fields and parameters.```pythonfrom ghost_client import Ghost# to read the client ID and secret from the databaseghost = Ghost.from_sqlite('/var/lib/ghost/content/data/ghost.db','http://localhost:2368')# or to use a specific client ID and secretghost = Ghost('http://localhost:2368',client_id='ghost-admin', client_secret='secret_key')# log inghost.login('username', 'password')# print the server's versionprint(ghost.version)# create a new tagtag = ghost.tags.create(name='API sample')# create a new post using itpost = ghost.posts.create(title='Example post', slug='custom-slug',markdown='',  # yes, even on v1.+custom_excerpt='An example post created from Python',tags=[tag])# list posts, tags and usersposts = ghost.posts.list(status='all',fields=('id', 'title', 'slug'),formats=('html', 'mobiledoc', 'plaintext'),)tags = ghost.tags.list(fields='name', limit='all')users = ghost.users.list(include='count.posts')# use paginationwhile posts:for post in posts:print(post)posts = posts.next_page()print(posts.total)print(posts.pages)# update a post & tagupdated_post = ghost.posts.update(post.id, title='Updated title')updated_tag = ghost.tags.update(tag.id, name='Updated tag')# note: creating, updating and deleting a user is not allowed by the API# access fields as propertiesprint(post.title)print(post.markdown)     # needs formats='mobiledoc'print(post.author.name)  # needs include='author'# delete a post & tagghost.posts.delete(post.id)ghost.tags.delete(tag.id)# upload an imageghost.upload(file_obj=open('sample.png', 'rb'))ghost.upload(file_path='/path/to/image.jpeg', 'rb')ghost.upload(name='image.gif', data=open('local.gif', 'rb').read())# log outghost.logout()```The logged in credentials will be saved in memory and on HTTP 401 errors the client will attempt to re-authenticate once automatically.Responses are wrapped in `models.ModelList` and `models.Model` types to allow pagination and retrieving fields as properties.## LicenseMIT
Package: ghostdb
Example SDK usage - PythonThe below code covers a scenario for some back-end system where some process must fetch stock data from a database (e.g. MySQL) and process this data so that it is in a format required by the client to display, based on a ticker symbol and fetching and processing this data is expensive. Caching the data provides a way of speeding up this process.fromGhostDB.cacheimportCachecache=Cache("my_ghostdb.conf")defgetStockData(ticker_smbl):# Fetch data from cachestock_data=cache.get(ticker_smbl)ifnotstock_data:# Fetch from MySQL.# After any processing, we can# assume our computed value is stored in# a variable called stock_data# Store result in cachecache.put(ticker_smbl,stock_data)returnstock_datareturngetStockData("AMZN")
Package: ghost-encrypt
GhostAboutGhost is a tool based on Python, that can encrypt or decrypt text-files, strings and sock-streams.
In the base implementation it contains the core classes and functions for the de-/encryption
of strings and files and additional an encrypted chat-system.EncryptionGhost uses a simple but secure encryption, which decrypts a string with a given or random key to non-readable
cypher text. This text can be decrypted with the cypher text itself, the key, and the char-list
used for encryption. It can decode the usual utf-8 signs, but be aware that other signs like "ÃŸ" or "Â©" will be skipped
in the encryption. A randomly generated key with 60 signs and the default 93 possible default-chars has 93^60
possible positions and would take a lot more than 5*10^14 years to crack. Because of this, the encryption
is with a random key probably uncrackable.How to useYou can install the phantom package withpip install ghost-encrypt. This contains how mentioned above, the functions
and classes for the de-/encryption of strings, text-files and sock-streams, as well as thearg-parserpackage. The
tool can be integrated, but it works as standalone, too. Just typeghost --helpor if that doesn't workpy -m ghost --helpto get a list and an interface to execute the commands.Usage examplesI personally use that script to de-/encrypt my passwords file and sometimes for chatting with my friends
(Encryption can be removed by passing 'a' as the key). It is also very useful when u are storing data for
a game that shouldn't be modified or for decrypting passwords on a backend.
Look at the example files or at__main__.pyto see some usages.
Package: ghost-in-the-machine
ghostManage your digital presenceInstall:wget gh.ost.lol/ghost.py -q && python3 ghost.pyHosts:Digital OceanRegistrars:Dynadot$ wget gh.ost.lol/ghost.py -q && python3 ghost.py

  _|_|_|  _|                              _|
_|        _|_|_|      _|_|      _|_|_|  _|_|_|_|
_|  _|_|  _|    _|  _|    _|  _|_|        _|
_|    _|  _|    _|  _|    _|      _|_|    _|
  _|_|_|  _|    _|    _|_|    _|_|_|        _|_|

spawning a new presence..
presence name: testing
digital ocean token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
generating droplet..
machine initialized at: xxx.xx.xx.xxx

spawning sudoer `ghost`..

setting up base system..
  0:00 updating
  0:09 upgrading
  0:55 installing system packages
  3:24 installing Python 3.9.2
  3:24   downloading
  3:25   extracting
  3:28   configuring
  4:07   making
  8:54   installing
  9:50 creating virtual environment
  9:59 installing SQLite
  9:59   downloading
 10:00   extracting
 10:01   configuring
 12:25 installing Ghost
 13:29 installing Nginx 1.18.0
 13:29   downloading
 13:31   extracting
 13:31   configuring
 13:42   making
 14:55   installing
 14:55 generating a large prime for TLS

 You may now sign in to your host while installation continues:
     https://165.227.30.1?secret=sepkpt

 14:59 installing Tor 0.4.4.5
 14:59   downloading
 15:01   extracting
 15:02   configuring
 15:34   making
 24:47   installing
 24:50 installing Firefox-82.0
 25:14 installing Geckodriver-0.27.0
Package: ghostly
Lightweight API around Selenium Webdriver and helpers for end to end testing
with Django.This package is alpha, the API will most likely change!It supports Django 1.6-1.8 for Python versions 2.7, 3.3, 3.4, 3.5 and pypy (where
theDjango version supports said Python version).DocsAvailable atghostly.readthedocs.orgInstallationYou can install ghostly either via the Python Package Index (PyPI) or from
github.To install using pip;pipinstallghostlyFrom github;$pipinstallgit+https://github.com/alexhayes/ghostly.gitUsageYou can use use this package outside of Django however it has limited use.Essentially there are two components, as follows;Ghostly- A lightweight wrapper and helper methods for Selenium
Webdriver. Presently it provides a handful of methods that utilise xpath to
deal with a page, such asxpath,xpath_waitet al.GhostlyDjangoTestCase- A lightweight test case that extendsStaticLiveServerTestCaseand sets up an instance ofGhostly. It
provides methods such asassertCurrentUrl,assertXpathEqualet al.GhostlyDjangoTestCaseGhostlyDjangoTestCaseinheritsStaticLiveServerTestCaseand thus fires up
a WSGI server that handles requests.Given you have a named URLhomewith a<h1>HelloWorld</h1>visible in
the source, you can do the following;classMyTestCase(GhostlyDjangoTestCase):deftest_homepage(self):self.goto(reverse('home'))# Assert that an element is equal to somethingself.assertXpathEqual('//h1','Hello World')# Assert the current url, relative or absoluteself.assertCurrentUrl('/home')Working with SVGTo traverse SVG with Selenium web driver you must use xpath.classMyTestCase(GhostlyDjangoTestCase):deftest_homepage(self):self.goto(reverse('home'))# Click on an element, or example, in an SVG.self.ghostly.xpath_click('//*[@id="refresh"]')# Assert that an Xpath is equal to somethingself.assertXpathEqual('//h2','Hello World')# Wait for xpath to existself.ghostly.xpath_wait('//div[@id="something"]')HistoryThis package started out as a simple way to construct browser tests using YAML,
written by Brenton Cleeland.The focus of this fork is to allow the developer to write programmatic unit
tests in the style ofunittest.Currently this fork does not contain any of the CSS selector style methods that
were originally available as the focus has been on xpath only support until a
more robust CSS selector toolkit can be provided.LicenseThis software is licensed under theMIT License. See theLICENSEfile in the top distribution directory for the full license text.AuthorAlex Hayes <alex@commoncode.com>Brenton Cleeland <brenton@commoncode.com>
Package: ghostml
GHOSTThis repository is part of the Supporting Information toGHOST: Adjusting the Decision Threshold to Handle Imbalanced Data in Machine LearningCarmen Esposito,1Gregory A. Landrum,1,2Nadine Schneider,3Nikolaus Stiefl,3and Sereina Riniker11Laboratory of Physical Chemistry, ETH Zurich, Vladimir-Prelog-Weg 2, 8093 Zurich,Switzerland2T5 Informatics GmbH, Spalenring 11, 4055 Basel, Switzerland3Novartis Institutes for BioMedical Research, Novartis Pharma AG, Novartis Campus,4002 Basel, SwitzerlandInstalling GHOSTYou can install the most recent release of GHOST from pypi:python -m pip install ghostmlor, if you want to install the development version directly from github:python -m pip install git+https://github.com/rinikerlab/GHOSTContentNotebooks:library_example.ipynbExample of how to use the ghostml library.example_oob_threshold_optimization.ipynbExample of how to use the oob-based thresholding method to optimize the decision threshold of a random forest classifier.example_GHOST.ipynbExample of how to use GHOST (Generalized tHreshOldShifTing) to optimize the decision threshold of classification models.Tutorial_Threshold_Optimization_RF.ipynbNotebook explaining step by step how to reproduce the results reported in our work.
Here, the code is only executed for 6 public datasets and the random forest model.Reproduce_Results_Public_Datasets.ipynbNotebook to reproduce the results reported in our work.
Here, results are produced for all 138 public datasets. The user can choose between four different machine learning methods, namely random forest (RF), gradient boosting (GB), XGBoost (XGB), and logistic regression (LR). The user can also choose between two different molecular descriptors, ECFP4 and RDKit2D.DeepChem_PubChem.ipynbNotebook to reproduce the results of the multi-task classification models for the PubChem datasets.DeepChem_MoleculeNet.ipynbNotebook to reproduce the results of the multi-task classification models for the MoleculeNet datasets.Validation Data:The threshold optimization methods have been validated agaist 138 public datasets and these are all provided here in the foldernotebooks/data.Dependencies:If you are just interested in using ghostml in your own code/notebooks, you'll just need these packages:numpypandassklearnA list of dependencies to run the example notebooks is available in the filenotebooks/ghost_env.yml. This conda environment was used to obtain the results reported in our work.AuthorsCarmen Esposito(GHOST procedure) andGreg Landrum(oob-based threshold optimization approach, data collection,initial code).AcknowledgementsConformal prediction (CP) experiments were adapted from theCP functionsprovided by theVolkamer Lab.LicenseThis package is licensed under the terms of the MIT license.Citationhttps://doi.org/10.1021/acs.jcim.1c00160
Package: ghostpip
GHOSTPIPGHOSTPIPis a Python module that provides convenient methods for interacting with theghost.toxinum.xyzAPI. It enables you to perform various operations such as user signup, signin, retrieving user information, fetching location details, getting SIM information, device details, balance information, and more.InstallationYou can installGHOSTPIPusing pip:pipinstallghostpipUsagefromghostpipimport(signup,signin,get_user,get_location,get_sim_info,get_device_info,get_account_balance,submit_birth_information,submit_nid_information,simulate_talk,teach_chatbot)Function ExamplesHere are some examples of how to use the functions:Signup a new user:signup("John Doe","johndoe@example.com","password123")Signin with an existing user:signin("johndoe@example.com","password123")Get user information:get_user("your-api-key")Get location details:get_location("your-api-key","0123456789")Get SIM information:get_sim_info("your-api-key","0123456789")Get device information:get_device_info("your-api-key","0123456789")Get account balance:get_account_balance("your-api-key","0123456789")Submit birth information:submit_birth_information("your-api-key","birth-info","dob")Submit NID information:submit_nid_information("your-api-key","nid-info","dob")Simulate talk:simulate_talk("your-api-key","ask","lc")Teach chatbot:teach_chatbot("your-api-key","ask","ans","lc")API DocumentationFor detailed information on the API endpoints and parameters, please refer to theghost.toxinum.xyz API documentation.ContributingContributions toGHOSTPIPare welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the GitHub repository.ContactFacebook:Mohammad AlaminTelegram:XYRUS INCGitHub:@illusionghost3Thanks For Star🙏👨‍💻Thanks For Fork 🙏👨‍💻LicenseThis project is licensed under theMIT License.
Package: ghostport
GhostPort Python SDKInstallationpip install ghostportUsageHosted DocumentationDocs can be found athttps://docs.ghostport.io.Initialize the ClientfromghostportimportGhostPortclient=GhostPort('YOUR_TOKEN')Get all keys and valuesflags=client.get_flag_values()print(flags)# Prints out a dictionary of flag keys to valuesGet a flag's valuevalue=client.get_flag_value('doTheThing')print(value)# Prints out the value of the flag
Package: ghost-pwa
Ghost Theme PWAThis theme enables you to "Install" your site as a Progressive Web App.Requires either Chrome or Firefox to install the app.Browsing works better with Chrome. Editing works better with Firefox.Theme ZIPIf you just have a ZIP archive, run:$ make_pwa <archive file>Example:$ make_pwa Casper-3.0.7.zipThe output is:$ ls
Casper-3.0.7-PWA.zipVerifyingTest your PWA here:https://www.seochecker.it/pwa-tester-onlineUse onlineTo use this online, you can open a notebook in Google Colab and apply the steps
described above.Download a ZIP file with your current theme. Next, upload it to Colab. Finally,
run the script on the ZIP file, and download the result. Voila! You can now
upload the PWA ZIP file to your Ghost installation.Usage example in a notebook:https://colab.research.google.com/drive/1cPrGzrS15Nz_7OhIt8Y8FfOD_wqM0H67DevelopmentTestpytest --doctest-modules
Package: ghostr
Strings that ignore part of themselves.fromghostrimportANSISGRGhoStrasgstrtest='\x1b[38;5;6mHello\x1b[38;5;10m there! Th\x1b[38;5;9mis is\x1b[7ma{0}demon\x1b[90mstration of the libr\x1b[0mary\'s\x1b[38;5;12m\x1b[4mcapabilities\x1b[0m!'print('1)',test)test=gstr(test).format('\x1b[3m\x1b[38;5;11mcool')print('2)',test)test=gstr(test)[:21]+gstr(test)[45:]print('3)',test)Installingpip3 install surveyLinksCheck out thedocumentationfor more info.
Package: ghostscript
Author:Hartmut Goebel <h.goebel@crazy-compiler.com>Version:0.7License:GNU General Public License v3 or later (GPLv3+)Homepage:https://gitlab.com/pdftools/python-ghostscriptGhostscriptis a well known interpreter for the PostScript
language and for PDF. This package implements a interface to theGhostscript C-APIusingctypes. Both a low-level and a pythonic,
high-level interface are provided.This package is currently tested only under GNU/Linux. Please report
whether it works in your environment, too. Thanks.ExampleHere is an example for how to use the high-level interface ofpython-ghostscript. This implements a very basic ps2pdf-tool:import sys
import locale
import ghostscript

args = [
    "ps2pdf", # actual value doesn't matter
    "-dNOPAUSE", "-dBATCH", "-dSAFER",
    "-sDEVICE=pdfwrite",
    "-sOutputFile=" + sys.argv[1],
    "-c", ".setpdfwrite",
    "-f",  sys.argv[2]
    ]

# arguments have to be bytes, encode them
encoding = locale.getpreferredencoding()
args = [a.encode(encoding) for a in args]

ghostscript.Ghostscript(*args)Here an example for passing a string document to Ghostscript:doc = b"""%!
/Helvetica findfont 20 scalefont setfont
50 50 moveto
(Hello World) show
showpage
quit
"""

import ghostscript

args = b"""test.py
     -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=/tmp/out.pdf
     -c .setpdfwrite""".split()

with ghostscript.Ghostscript(*args) as gs:
    gs.run_string(doc)More examples can be found in theexamplessubdirectory of the
distribution archive.Requirements and InstallationPlease note:This package is meant for developers. Even if there are
some usable examples included, installations instructions are meant
for developers.python-ghostscriptrequiresPython3.6 or higher (tested with Python 3.6–3.9)setuptoolsfor installation (see below)GhostscriptVersion 9.0.8 or higherInstalling python-ghostscriptSince this package is meant for developers, we assume you have
experience in installing Python packages.python-ghostscriptis listed onPyPI (Python Package Index), so
you can install it usingpip install ghostscriptas usual. Please
refer to the manuals ofpipfor further information.Alternatively you my download and unpack the source package ofpython-ghostscriptfromhttp://pypi.python.org/pypi/ghostscriptand
run:python ./setup.py install
Package: ghosttag
# ghost-tag-updaterA Python script to list, update, and delete your Ghost blog's tags.# Install```$ pip install ghosttag```# UsageWarning: Make a backup of your database first! You can do it like so:```$ cp ghost-dev.db ghost-dev.db.baklist [--db-path=<path>]Lists all the ghost tags in your databaseupdate [--db-path=<path>] [--id=<tag-id>] [--name=<tag-name>] [--slug=<slug-name>]Update the name or slug of a tag. Id is mandatory (you can find it by using the list command). You can define the name, slug, or both.delete  [--db-path=<path>] [--id=<tag-id>]Deletes the specific tag.# Requirements* docopt: Creates beautiful command line interfaces easily.* tabulate: Pretty-print tabular data# ContributingFeel free to make your own PR
Package: ghost-word-game
# ghostPython engine for the word game of ghost (as played on em)pip3 install ghost_word_gameimport ghostPlease refer to tests for example usage. Implemented using a finite state machine style.### some quik toolsbash run_tests.shandupload_pkg.shcan be used. Remember to do the relevant config insetup.pybefore uplaoding to PyPi.### NotesNot released. Used in telegram bot (in repository ghost-bot).Looking forward to suggestions ^^
Package: ghostwriter
GhostWriter lets you edit a website via lektor, a flexible and powerful static content management system for building complex and beautiful websites out of flat files - for people who do not want to make a  compromise between a CMS and a static blog engine.If you want to edit a website with the ease of a CMS and share it as static pages GhostWriter starts a lektor server locally and include some git functionalities to transparently upload your changes or retrieve updates from an upstream repository. GhostWriter also allow you to share your work via .onion, by using OnionShare or a nginx webserver running on a Docker container. Everything is always hosted on your machine, and disappear when you shutdown GhostWriter. The .onion can be accessed via Tor Browser.
Package: ghost-xarray
GHOST-xarrayGHOST-xarray provides helper functions
to load output files fromGHOST(the Geophysical High-Order Suite for Turbulence)
intoxarraylabelled multidimensional arrays.Installationpip install ghost-xarrayUsageGHOST-xarray provides 2 functions:open_dataarray, which opens a single variable,open_dataset, which opens multiple variables.open_dataarrayneeds:
a directory, a variable name,
and its timestepdt, shape and datatype:importghost_xarrayvx=ghost_xarray.open_dataarray("path/to/directory","vx",dt=0.5,shape=(128,128,128),dtype=np.float32,)vx.isel(t=0,y=64).plot()# isel selects by index positionBy default,
it generates the corresponding coordinates
from theshapeparameter
asnp.linspace(0, 2 * np.pi, shape[i], endpoint=False).
Butshapecan also be a dictionary ofnp.ndarraywith explicit coordinates:vx=ghost_xarray.open_dataarray("path/to/directory","vx",dt=0.5,shape=dict(x=np.linspace(0,10,64),y=np.linspace(0,100,11)),dtype=np.float32,)v_average=vx.isel(t=0).sel(y=50).mean(dim="x")# sel selects by coordinatev_average.compute()All operations are lazy,
until.compute()or.plot()are called.
Hence,
the above example only loads a single file to memory,
instead of actually loading data for all times.For a vector-valued variable,
it adds an additionalidimension,
corresponding tox, y[, z]:v=ghost_xarray.open_dataarray("path/to/directory",name="v",dt=0.5,coords=(128,128,128),dtype=np.float32,)v.isel(y=64).sel(t=1.5).plot(col="i")# makes three 2D imshows, one for each component.Finally,open_datasetopens several variables
into axarray.Dataset,
which provides a dict-like interface.data=ghost_xarray.open_dataset("path/to/directory/",names=["v","w"],dt=0.5,coords=(128,128,128),dtype=np.float32,)h=(data.v*data.w).sum(dim="i")# computes the sum along components (dimension "i").h.isel(t=slice(0,4),x=64).plot(col="t")# plots the first 4 timepoints
Package: ghp-import2
A GitHub Pages import tool.WarningThis willDESTROYyourgh-pagesbranch. If you love it, you’ll want to
take backups before playing with this. This script assumes thatgh-pagesis
100% derivative. You should never edit files in yourgh-pagesbranch by hand
if you’re using this script because you will lose your work.Installationpip install ghp-import2UsageUsage: ghp-import [OPTIONS] DIRECTORYOptions:-nInclude a .nojekyll file in the branch.-mMESGThe commit message to use on the target branch.-pPush the branch to origin/{branch} after committing.-rREMOTEThe name of the remote to push to. [origin]-bBRANCHName of the branch to write to. [gh-pages]-h,--helpshow this help message and exitIts pretty simple. Inside your repository just runghp-import$DOCS_DIRwhere$DOCS_DIRis the path to thebuiltdocumentation. This will write a
commit to yourgh-pagesbranch with the current documents in it.If you specify-pit will also attempt to push thegh-pagesbranch to
GitHub. By default it’ll just rungit push origingh-pages. You can specify
a different remote using the-rflag.You can specify a different branch with-b. This is useful for user and
organization page, which are served from themasterbranch.ghp-importalso recognizes theGIT_DIRenvironment variable which can be
useful for Git hooks.Licenseghp-importis distributed under the Tumbolia Public License. See the LICENSE
file for more information.Changelog1.0.1 (2016-01-23)Fixed breakage on Python 3. Contributed by Chris Warrick in#1.1.0.0 (2015-05-09)First release on PyPI.