Skip to content

Commit 7116dca

Browse files
init commit
1 parent a0d885c commit 7116dca

21 files changed

+1450
-0
lines changed

.gitignore

Lines changed: 305 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,305 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/python,pycharm,visualstudiocode
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,pycharm,visualstudiocode
4+
5+
### PyCharm ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# AWS User-specific
17+
.idea/**/aws.xml
18+
19+
# Generated files
20+
.idea/**/contentModel.xml
21+
22+
# Sensitive or high-churn files
23+
.idea/**/dataSources/
24+
.idea/**/dataSources.ids
25+
.idea/**/dataSources.local.xml
26+
.idea/**/sqlDataSources.xml
27+
.idea/**/dynamic.xml
28+
.idea/**/uiDesigner.xml
29+
.idea/**/dbnavigator.xml
30+
31+
# Gradle
32+
.idea/**/gradle.xml
33+
.idea/**/libraries
34+
35+
# Gradle and Maven with auto-import
36+
# When using Gradle or Maven with auto-import, you should exclude module files,
37+
# since they will be recreated, and may cause churn. Uncomment if using
38+
# auto-import.
39+
# .idea/artifacts
40+
# .idea/compiler.xml
41+
# .idea/jarRepositories.xml
42+
# .idea/modules.xml
43+
# .idea/*.iml
44+
# .idea/modules
45+
# *.iml
46+
# *.ipr
47+
48+
# CMake
49+
cmake-build-*/
50+
51+
# Mongo Explorer plugin
52+
.idea/**/mongoSettings.xml
53+
54+
# File-based project format
55+
*.iws
56+
57+
# IntelliJ
58+
out/
59+
60+
# mpeltonen/sbt-idea plugin
61+
.idea_modules/
62+
63+
# JIRA plugin
64+
atlassian-ide-plugin.xml
65+
66+
# Cursive Clojure plugin
67+
.idea/replstate.xml
68+
69+
# SonarLint plugin
70+
.idea/sonarlint/
71+
72+
# Crashlytics plugin (for Android Studio and IntelliJ)
73+
com_crashlytics_export_strings.xml
74+
crashlytics.properties
75+
crashlytics-build.properties
76+
fabric.properties
77+
78+
# Editor-based Rest Client
79+
.idea/httpRequests
80+
81+
# Android studio 3.1+ serialized cache file
82+
.idea/caches/build_file_checksums.ser
83+
84+
### PyCharm Patch ###
85+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
86+
87+
# *.iml
88+
# modules.xml
89+
# .idea/misc.xml
90+
# *.ipr
91+
92+
# Sonarlint plugin
93+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
94+
.idea/**/sonarlint/
95+
96+
# SonarQube Plugin
97+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
98+
.idea/**/sonarIssues.xml
99+
100+
# Markdown Navigator plugin
101+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
102+
.idea/**/markdown-navigator.xml
103+
.idea/**/markdown-navigator-enh.xml
104+
.idea/**/markdown-navigator/
105+
106+
# Cache file creation bug
107+
# See https://youtrack.jetbrains.com/issue/JBR-2257
108+
.idea/$CACHE_FILE$
109+
110+
# CodeStream plugin
111+
# https://plugins.jetbrains.com/plugin/12206-codestream
112+
.idea/codestream.xml
113+
114+
# Azure Toolkit for IntelliJ plugin
115+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
116+
.idea/**/azureSettings.xml
117+
118+
### Python ###
119+
# Byte-compiled / optimized / DLL files
120+
__pycache__/
121+
*.py[cod]
122+
*$py.class
123+
124+
# C extensions
125+
*.so
126+
127+
# Distribution / packaging
128+
.Python
129+
build/
130+
develop-eggs/
131+
dist/
132+
downloads/
133+
eggs/
134+
.eggs/
135+
lib/
136+
lib64/
137+
parts/
138+
sdist/
139+
var/
140+
wheels/
141+
share/python-wheels/
142+
*.egg-info/
143+
.installed.cfg
144+
*.egg
145+
MANIFEST
146+
147+
# PyInstaller
148+
# Usually these files are written by a python script from a template
149+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
150+
*.manifest
151+
*.spec
152+
153+
# Installer logs
154+
pip-log.txt
155+
pip-delete-this-directory.txt
156+
157+
# Unit test / coverage reports
158+
htmlcov/
159+
.tox/
160+
.nox/
161+
.coverage
162+
.coverage.*
163+
.cache
164+
nosetests.xml
165+
coverage.xml
166+
*.cover
167+
*.py,cover
168+
.hypothesis/
169+
.pytest_cache/
170+
cover/
171+
172+
# Translations
173+
*.mo
174+
*.pot
175+
176+
# Django stuff:
177+
*.log
178+
local_settings.py
179+
db.sqlite3
180+
db.sqlite3-journal
181+
182+
# Flask stuff:
183+
instance/
184+
.webassets-cache
185+
186+
# Scrapy stuff:
187+
.scrapy
188+
189+
# Sphinx documentation
190+
docs/_build/
191+
192+
# PyBuilder
193+
.pybuilder/
194+
target/
195+
196+
# Jupyter Notebook
197+
.ipynb_checkpoints
198+
199+
# IPython
200+
profile_default/
201+
ipython_config.py
202+
203+
# pyenv
204+
# For a library or package, you might want to ignore these files since the code is
205+
# intended to run in multiple environments; otherwise, check them in:
206+
# .python-version
207+
208+
# pipenv
209+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
210+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
211+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
212+
# install all needed dependencies.
213+
#Pipfile.lock
214+
215+
# poetry
216+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
217+
# This is especially recommended for binary packages to ensure reproducibility, and is more
218+
# commonly ignored for libraries.
219+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
220+
#poetry.lock
221+
222+
# pdm
223+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
224+
#pdm.lock
225+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
226+
# in version control.
227+
# https://pdm.fming.dev/#use-with-ide
228+
.pdm.toml
229+
230+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
231+
__pypackages__/
232+
233+
# Celery stuff
234+
celerybeat-schedule
235+
celerybeat.pid
236+
237+
# SageMath parsed files
238+
*.sage.py
239+
240+
# Environments
241+
.env
242+
.venv
243+
env/
244+
venv/
245+
ENV/
246+
env.bak/
247+
venv.bak/
248+
249+
# Spyder project settings
250+
.spyderproject
251+
.spyproject
252+
253+
# Rope project settings
254+
.ropeproject
255+
256+
# mkdocs documentation
257+
/site
258+
259+
# mypy
260+
.mypy_cache/
261+
.dmypy.json
262+
dmypy.json
263+
264+
# Pyre type checker
265+
.pyre/
266+
267+
# pytype static type analyzer
268+
.pytype/
269+
270+
# Cython debug symbols
271+
cython_debug/
272+
273+
# PyCharm
274+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
275+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
276+
# and can be added to the global gitignore or merged into this file. For a more nuclear
277+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
278+
#.idea/
279+
280+
### VisualStudioCode ###
281+
.vscode/*
282+
!.vscode/settings.json
283+
!.vscode/tasks.json
284+
!.vscode/launch.json
285+
!.vscode/extensions.json
286+
!.vscode/*.code-snippets
287+
288+
# Local History for Visual Studio Code
289+
.history/
290+
291+
# Built Visual Studio Code Extensions
292+
*.vsix
293+
294+
### VisualStudioCode Patch ###
295+
# Ignore all local history of files
296+
.history
297+
.ionide
298+
299+
# Support for Project snippet scope
300+
.vscode/*.code-snippets
301+
302+
# Ignore code-workspaces
303+
*.code-workspace
304+
305+
# End of https://www.toptal.com/developers/gitignore/api/python,pycharm,visualstudiocode

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"donjayamanne.python-extension-pack", // for python support
4+
"ritwickdey.LiveServer", // for documentation preview
5+
"DavidAnson.vscode-markdownlint", // that you dont mess up your markdown files
6+
"lextudio.restructuredtext-pack" // for restructured text support
7+
]
8+
}

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
setup:
2+
python setup.py bdist_wheel sdist
3+
install:
4+
pip install -e .
5+
#upload:
6+
# twine upload dist/*
7+
8+
all: setup install #upload
9+
10+
.PHONY: docs
11+
docs:
12+
cd docs; make html

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,17 @@
22

33
DSI allows you to perform basic interactions on your display server, like screenshotting a window or sending input to it.
44
Currently DSI only supports X11/Xorg (GNU/Linux) but it aims to be cross-platform.
5+
6+
## Usage
7+
8+
look at the [documentation]("https://dsi.readthedocs.io/en/latest/) for moor help
9+
10+
```python
11+
from dsi import DSI
12+
13+
window = DSI.get_active_window()
14+
15+
print("Active window: ")
16+
print("\tName: {}".format(window.name))
17+
print("\tPID: {}".format(window.pid))
18+
```

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DSI Documentation
2+
3+
## Installation/ Requirements
4+
5+
```sh
6+
pip install -Ur requirements.txt
7+
```
8+
9+
## Building
10+
11+
```sh
12+
make html
13+
```

0 commit comments

Comments
 (0)