• This repository has been archived on 07/Aug/2021
  • Stars
    star
    287
  • Rank 143,391 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 14 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A python module for reading and writing orgmode files

**PyOrgMode is currently, and probably for ever, unmaintained **

There is a new project that is well documented and may cover most, if not more of what PyOrgMode was covering: Karlicoss’ OrgParse.

PyOrgMode

PyOrgMode is a small python library able to do simple tasks with your org files. It allows you to generate org files or treat them in an automated fashion.

This project is not my top priority, but I’m more than happy to receive pull requests. Don’t worry, even if it takes some time, I go through all of them ;)

I’d like to thank all the people that contributes (see AUTHORS file).

Quick Start

Installation

Download the git repo and then install the package.

git clone https://github.com/bjonnh/PyOrgMode.git
cd PyOrgMode/
sudo python setup.py install

Import an Org-Mode file

Import PyOrgMode

import PyOrgMode

Create an Org data structure to hold the org-mode file.

base = PyOrgMode.OrgDataStructure()

Load the org-mode file.

base.load_from_file("test.org")

Create an org-mode file

Create an Org data structure to hold the org-mode file.

base = PyOrgMode.OrgDataStructure()

Create a new TODO item

new_todo = PyOrgMode.OrgNode.Element()
new_todo.heading = "I am a new todo item"
new_todo.tags=["things", "important"]
new_todo.level = 1
new_todo.todo = "TODO"

Add a scheduled item and a deadline to the item.

_sched = PyOrgMode.OrgSchedule()
_sched._append(new_todo, _sched.Element(scheduled="<2015-08-01 Sat 12:00-13:00>"))
_sched._append(new_todo, _sched.Element(deadline="<2015-08-01 Sat 12:00-13:00>"))

Create a logbook drawer

_props = PyOrgMode.OrgDrawer.Element("LOGBOOK")
# Add a properties drawer
_props.append(PyOrgMode.OrgDrawer.Element("- State \"SOMEDAY\"    from \"TODO\"     [2015-07-01 Wed 09:45]"))
# Append the properties to the new todo item
new_todo.append_clean(_props)

Create a properties drawer

_props = PyOrgMode.OrgDrawer.Element("PROPERTIES")
# Add a properties drawer
_props.append(PyOrgMode.OrgDrawer.Property("FRUITS", "pineapples"))
_props.append(PyOrgMode.OrgDrawer.Property("NAMES", "bob, sally"))
# Append the properties to the new todo item
new_todo.append_clean(_props)

Append the todo item to the base object

base.root.append_clean(new_todo)

Save the org object to a file

base.save_to_file("output.org")

Tools

Tangle (Export the files)

Documentation

Authors

Jonathan BISSON <firstname.lastname at bjonnh.net> : initiator of the project
Antti KAIHOLA <akaihol plus orgmode at ambitone dot com>
m3wolf (github)
bordercore (github)
wroberts (github)
gonvaled (github)
10nin (github)
CodeMonk (github)
midraal (github)
whacked (github)
maxandersen (github)
CodeMonk (github)
midraal (github)
Seamus Tuohy (@elationfoundation on github)
clemente (github)
kbarber2 (github)
sp1ff (github)
inducer (github)

More Repositories

1

xlspic

Convert pictures to excel files - because people are sending screenshots in word files
Python
41
star
2

cyberpower-usb-watcher

A tiny python script to watch CyberPower UPS directly from USB (no proprietary software involved)
Python
36
star
3

owon-sds7102-protocol

A GNU/Linux software suite for handling Owon oscilloscopes
C
33
star
4

git-undo

A way to unfuck your git repo
Shell
16
star
5

FilePermissionsPlugin

File Permissions Plugin is a repository that provides a simple plugin to change file permissions directly from IntelliJ.
Kotlin
9
star
6

fpga_class_psone

FPGA class for ECP5 boards
Python
5
star
7

git-curse

A git plugin that creates cursing commit messages
Shell
4
star
8

konbu

A DSL based ontology builder based on Robot
Kotlin
4
star
9

ulx3s-synth

Playing with FPGAs to make a midi-synth
Verilog
4
star
10

dinoctopus

A MIDI router and USB interface using a Raspberry PICO (RP2040)
C++
4
star
11

rdf4k

RDF4J adapted for Kotlin
Kotlin
3
star
12

kotlin-chicago-style

Kotlin with no ketchup
3
star
13

alscope

A simple FPGA logic analyzer over Ethernet for Colorlight boards
Python
3
star
14

Zotero-BibLaTeXToClipBoard-Firefox-module

Adds a button to Firefox allowing a user to copy to the clipboard bibtex elements corresponding to what is currently selected in zotero.
2
star
15

thingbus_d3js

A small test for d3js-ing thingbus data.
JavaScript
2
star
16

ldapui

A Flask interface to handle users on a small-scale LDAP server
Python
2
star
17

spring-kotlin-serializer-demo

Kotlin
2
star
18

trackpoint_uinput

A way to handle IBM's trackpoints under Linux, that work with Wayland.
C++
2
star
19

PyAlternC-SSHMachine

A script used to open and close ssh servers on alternc (like the one on lautre.net)
Python
2
star
20

kbaf2mzml

Ultra fast Bruker BAF to MzML converter (for Linux and maybe Windows)
Kotlin
2
star
21

DigitalArtsCraftStudio-python

Mattel Fischer-Price Digital Arts & Crafts Studio (DACS) linux "driver" (and more)
Python
1
star
22

pyoo-demos

Demos for pyoo @pumpingstationone
Python
1
star
23

ontopadapter

Querying SQL databases using SPARQL through HTTP
Kotlin
1
star
24

fomu-playground

A repository in which I put my Fomu (https://tomu.im/fomu.html) experiments.
Verilog
1
star
25

PS1-CRAPI

Python
1
star
26

molinfo

A tiny service providing information about molecules
Kotlin
1
star
27

ZoteroRDF-citekey

JavaScript
1
star
28

msp430-builder

A simple script to build projects for MRP-EXP4300G2 from Texas Instruments
Shell
1
star
29

s3-wizard

Create S3 buckets, associated users and give them policies
Python
1
star
30

udev_serialcopier

A stupid quick and dirty udev-based USB copier.
Shell
1
star
31

spinverter

Convert between Spin description formats for NMR simulation.
Kotlin
1
star
32

npwd_importer

This project is now on GitLab https://gitlab.com/lotus7/wikidataLotusImporter
Kotlin
1
star
33

din-ui

Kind-of UI for kind-of devices
C++
1
star
34

dinoctopus_box

OpenSCAD
1
star
35

konnector

A Kotlin(JVM) connector for GNFinder (gRPC), PubMed and CrossREF.
Kotlin
1
star
36

parrot

This project moved to SourceHut
Python
1
star
37

dinoctopus_old

A midi project that does things with ... midi ...
C++
1
star
38

rs-midi-programmer

Midi controller programming system
Rust
1
star
39

fpga4carl

How to produce bitstreams
Dockerfile
1
star
40

bcr2000-gem

A Ruby gem to control BCR2000 control surfaces.
1
star
41

carl-blinky

Verilog
1
star
42

arty-z7-20-notes

My notes on using an Arty Z7-20 FPGA board
Shell
1
star
43

lotus-debug-001

Forget about that repo you never saw it
Python
1
star
44

theremin

RP2040 Laser-TOF based theremin.
C++
1
star
45

kmidi

[EXPERIMENTAL] A quick kotlin program to transform a Behringer BCR2000 to a full NRPN control surface.
Kotlin
1
star
46

miclit

A streamlit app to calculate MICs this is an internal project, don't expect support.
Python
1
star