https://github.com/dgelessus/pythonista_startup
Bits and pieces from my pythonista_startup folder.
https://github.com/dgelessus/pythonista_startup
python pythonista pythonista-ios
Last synced: 23 days ago
JSON representation
Bits and pieces from my pythonista_startup folder.
- Host: GitHub
- URL: https://github.com/dgelessus/pythonista_startup
- Owner: dgelessus
- License: mit
- Created: 2016-04-03T20:43:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T21:53:58.000Z (about 8 years ago)
- Last Synced: 2024-08-07T23:55:16.384Z (10 months ago)
- Topics: python, pythonista, pythonista-ios
- Language: Python
- Size: 12.7 KB
- Stars: 24
- Watchers: 8
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pythonista_startup
Bits and pieces from my pythonista_startup folder.
## Installation
### To install a single script
If you don't have a `pythonista_startup` file/folder already, create a new file named `pythonista_startup.py` under `Documents` or `site-packages`.
Each script is contained in a single function named `run`. Copy the entire function block from the script and paste it into your `pythonista_startup` file, rename the `run` function to something different, and then call it.
For example, a `pythonista_startup.py` with only `enable_faulthandler` could look like this ([full example](https://gist.github.com/dgelessus/fe8e267149862eb67127f4fff7e017be)):
```python
def enable_faulthandler():
import ctypes
import datetime
# ... rest of the pasted code ...enable_faulthandler()
```### To install the entire package
Back up your existing `pythonista_startup` file/folder, then download this repo, name the folder `pythonista_startup` and put it under `Documents` or `site-packages`. The easiest way to do this is to run these commands in [stash](https://github.com/ywangd/stash):
```sh
mkdir site-packages/pythonista_startup
cd site-packages/pythonista_startup
git clone https://github.com/dgelessus/pythonista_startup.git
```And to update:
```sh
cd site-packages/pythonista_startup
git pull
```