orgmunge 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orgmunge-0.2.3 → orgmunge-0.2.4}/PKG-INFO +2 -1
- {orgmunge-0.2.3 → orgmunge-0.2.4}/pyproject.toml +1 -1
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/classes.py +1 -1
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/parsetab.py +1 -1
- orgmunge-0.2.3/src/orgmunge/Untitled Document +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/LICENSE +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/README.org +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/__init__.py +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/lexer.py +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/parser.out +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/parser.py +0 -0
- {orgmunge-0.2.3 → orgmunge-0.2.4}/src/orgmunge/todos.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: orgmunge
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Programmatically modify Orgmode documents
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: durableOne
|
|
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
15
|
Requires-Dist: ply (>=3.11,<4.0)
|
|
15
16
|
Description-Content-Type: text/plain
|
|
16
17
|
|
|
@@ -637,7 +637,7 @@ class Heading:
|
|
|
637
637
|
def get_drawer_by_name(self, name: str) -> Optional[Drawer]:
|
|
638
638
|
"Return the named drawer if it exists, or None if it doesn't"
|
|
639
639
|
try:
|
|
640
|
-
return next(d for d in self.drawers if d.name == name)
|
|
640
|
+
return next(d for d in (self.drawers or []) if d.name == name)
|
|
641
641
|
except StopIteration:
|
|
642
642
|
return None
|
|
643
643
|
|
|
@@ -6,7 +6,7 @@ _tabversion = '3.10'
|
|
|
6
6
|
|
|
7
7
|
_lr_method = 'LALR'
|
|
8
8
|
|
|
9
|
-
_lr_signature = 'ATIMESTAMP COMMENT COOKIE DRAWER ITIMESTAMP METADATA NEWLINE PRIORITY SCHEDULING SEPARATOR SPACE STARS TAGS TEXT TODOorg_file : metadata org_tree\n
|
|
9
|
+
_lr_signature = 'ATIMESTAMP COMMENT COOKIE DRAWER ITIMESTAMP METADATA NEWLINE PRIORITY SCHEDULING SEPARATOR SPACE STARS TAGS TEXT TODOorg_file : metadata org_tree\n| non_metadata_body_text SEPARATOR org_tree\n| non_metadata_body_text SEPARATOR\n| metadata non_metadata_body_text SEPARATOR org_tree\n| metadata non_metadata_body_text SEPARATOR \n| metadata\n| org_tree\n| SEPARATOR\n| emptymetadata : METADATA SEPARATOR\n| METADATA NEWLINEorg_tree : heading\n| heading SEPARATOR\n| org_tree heading SEPARATOR\n| org_tree headingheading : headline NEWLINE contents\n| headline SEPARATORheadline : STARS SPACE comment todo priority title cookie tagscomment : COMMENT SPACE\n| emptytodo : TODO SPACE\n| emptypriority : PRIORITY SPACE\n| emptytitle : TEXT \n| TODO\n| title TODO\n| title TEXT\n| title SPACE TEXT\n| title SPACE TODO\n| title SPACE\n| emptycookie : COOKIE SPACE\n| COOKIE\n| emptytags : TAGS\n| emptycontents : scheduling drawers bodyscheduling_data : SCHEDULING SPACE any_timestamp NEWLINE\n| SCHEDULING SPACE any_timestamp SEPARATOR\n| SCHEDULING SPACE any_timestamp SPACE\n| scheduling_data SCHEDULING SPACE any_timestamp NEWLINE\n| scheduling_data SCHEDULING SPACE any_timestamp SEPARATOR\n| scheduling_data SCHEDULING SPACE any_timestamp SPACEscheduling : scheduling_data\n| emptyany_timestamp : ATIMESTAMP\n| ITIMESTAMPdrawer_data : DRAWER NEWLINE\n| DRAWER SEPARATOR\n| drawer_data DRAWER NEWLINE\n| drawer_data DRAWER SEPARATORdrawers : drawer_data\n| emptybody : body_text\n| emptynon_metadata_body_text : TEXT\n| SPACE\n| any_timestamp\n| non_metadata_body_text TEXT\n| non_metadata_body_text SPACE\n| non_metadata_body_text special_token\n| non_metadata_body_text NEWLINEspecial_token : SCHEDULING\n| COOKIE\n| PRIORITY\n| TODO\n| any_timestamp\n| COMMENT\n| TAGSbody_text : TEXT\n| SPACE\n| METADATA\n| special_token\n| body_text TEXT\n| body_text SPACE\n| body_text special_token\n| body_text METADATA\n| body_text NEWLINEempty :'
|
|
10
10
|
|
|
11
11
|
_lr_action_items = {'SEPARATOR':([0,4,7,8,9,10,11,12,13,14,17,18,20,21,22,23,24,25,26,27,28,29,30,34,35,36,40,41,42,43,45,47,49,50,51,52,55,57,58,59,60,61,62,63,64,65,66,67,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,],[5,19,31,-57,-58,-59,33,-47,-48,35,37,38,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-17,-80,-16,-80,-45,-46,-80,-20,-80,-53,-54,68,-80,-22,-19,-38,-55,-56,-71,-72,-73,-74,81,-49,-50,85,-80,-24,-21,-75,-76,-77,-78,-79,-51,-52,93,-41,-39,-40,-80,-25,-26,-32,-23,-44,-42,-43,-31,-80,-27,-28,-34,-35,-29,-30,-18,-36,-37,-33,]),'METADATA':([0,12,13,24,25,26,27,28,29,30,34,41,42,43,49,50,51,60,62,63,64,65,67,68,75,76,77,78,79,80,81,83,84,85,91,92,93,],[7,-47,-48,-64,-65,-66,-67,-68,-69,-70,-80,-80,-45,-46,64,-53,-54,78,-71,-72,-73,-74,-49,-50,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'TEXT':([0,2,4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,31,32,34,36,41,42,43,45,47,49,50,51,55,57,58,60,62,63,64,65,67,68,71,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92,93,94,96,97,100,101,],[8,8,20,-57,-58,-59,-47,-48,20,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-10,-11,-80,-80,-80,-45,-46,-80,-20,62,-53,-54,-80,-22,-19,75,-71,-72,-73,-74,-49,-50,87,-24,-21,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,97,-25,-26,-32,-23,-44,-42,-43,100,-27,-28,-29,-30,]),'SPACE':([0,2,4,8,9,10,12,13,15,17,20,21,22,23,24,25,26,27,28,29,30,31,32,34,36,41,42,43,44,45,46,47,49,50,51,53,55,56,57,58,60,62,63,64,65,67,68,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,96,97,98,100,101,],[9,9,21,-57,-58,-59,-47,-48,36,21,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-10,-11,-80,-80,-80,-45,-46,54,-80,58,-20,63,-53,-54,69,-80,74,-22,-19,76,-71,-72,-73,-74,-49,-50,83,-80,90,-24,-21,-75,-76,-77,-78,-79,-51,-52,91,-41,-39,-40,94,-25,-26,-32,-23,-44,-42,-43,-31,-27,-28,105,-29,-30,]),'$end':([0,1,2,3,5,6,11,12,13,16,18,19,24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,48,49,50,51,59,60,61,62,63,64,65,67,68,75,76,77,78,79,80,81,83,84,85,91,92,93,],[-80,0,-6,-7,-8,-9,-12,-47,-48,-1,-15,-3,-64,-65,-66,-67,-68,-69,-70,-10,-11,-13,-80,-17,-5,-14,-2,-16,-80,-45,-46,-4,-80,-53,-54,-38,-55,-56,-71,-72,-73,-74,-49,-50,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'ATIMESTAMP':([0,2,4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,31,32,34,41,42,43,49,50,51,54,60,62,63,64,65,67,68,69,75,76,77,78,79,80,81,83,84,85,91,92,93,],[12,12,12,-57,-58,-59,-47,-48,12,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-10,-11,-80,-80,-45,-46,12,-53,-54,12,12,-71,-72,-73,-74,-49,-50,12,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'ITIMESTAMP':([0,2,4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,31,32,34,41,42,43,49,50,51,54,60,62,63,64,65,67,68,69,75,76,77,78,79,80,81,83,84,85,91,92,93,],[13,13,13,-57,-58,-59,-47,-48,13,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-10,-11,-80,-80,-45,-46,13,-53,-54,13,13,-71,-72,-73,-74,-49,-50,13,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'STARS':([0,2,3,11,12,13,16,18,19,24,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,42,43,48,49,50,51,59,60,61,62,63,64,65,67,68,75,76,77,78,79,80,81,83,84,85,91,92,93,],[15,15,15,-12,-47,-48,15,-15,15,-64,-65,-66,-67,-68,-69,-70,-10,-11,-13,-80,-17,15,-14,15,-16,-80,-45,-46,15,-80,-53,-54,-38,-55,-56,-71,-72,-73,-74,-49,-50,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'NEWLINE':([4,7,8,9,10,12,13,14,17,20,21,22,23,24,25,26,27,28,29,30,36,45,47,52,55,57,58,60,62,63,64,65,66,70,71,73,74,75,76,77,78,79,82,86,87,88,89,90,94,95,96,97,98,99,100,101,102,103,104,105,],[23,32,-57,-58,-59,-47,-48,34,23,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-80,-20,67,-80,-22,-19,79,-71,-72,-73,-74,80,84,-80,-24,-21,-75,-76,-77,-78,-79,92,-80,-25,-26,-32,-23,-31,-80,-27,-28,-34,-35,-29,-30,-18,-36,-37,-33,]),'SCHEDULING':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,41,42,43,49,50,51,60,62,63,64,65,67,68,75,76,77,78,79,80,81,83,84,85,91,92,93,],[24,-57,-58,-59,-47,-48,24,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,44,-80,53,-46,24,-53,-54,24,-71,-72,-73,-74,-49,-50,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'COOKIE':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,36,41,42,43,45,47,49,50,51,55,57,58,60,62,63,64,65,67,68,71,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92,93,94,96,97,100,101,],[25,-57,-58,-59,-47,-48,25,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-80,-80,-45,-46,-80,-20,25,-53,-54,-80,-22,-19,25,-71,-72,-73,-74,-49,-50,-80,-24,-21,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,98,-25,-26,-32,-23,-44,-42,-43,-31,-27,-28,-29,-30,]),'PRIORITY':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,36,41,42,43,45,47,49,50,51,55,57,58,60,62,63,64,65,67,68,74,75,76,77,78,79,80,81,83,84,85,91,92,93,],[26,-57,-58,-59,-47,-48,26,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-80,-80,-45,-46,-80,-20,26,-53,-54,72,-22,-19,26,-71,-72,-73,-74,-49,-50,-21,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'TODO':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,36,41,42,43,45,47,49,50,51,55,57,58,60,62,63,64,65,67,68,71,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92,93,94,96,97,100,101,],[27,-57,-58,-59,-47,-48,27,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-80,-80,-45,-46,56,-20,27,-53,-54,-80,-22,-19,27,-71,-72,-73,-74,-49,-50,88,-24,-21,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,96,-25,-26,-32,-23,-44,-42,-43,101,-27,-28,-29,-30,]),'COMMENT':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,36,41,42,43,49,50,51,60,62,63,64,65,67,68,75,76,77,78,79,80,81,83,84,85,91,92,93,],[29,-57,-58,-59,-47,-48,29,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,46,-80,-45,-46,29,-53,-54,29,-71,-72,-73,-74,-49,-50,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-44,-42,-43,]),'TAGS':([4,8,9,10,12,13,17,20,21,22,23,24,25,26,27,28,29,30,34,36,41,42,43,45,47,49,50,51,55,57,58,60,62,63,64,65,67,68,71,73,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,105,],[30,-57,-58,-59,-47,-48,30,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-80,-80,-80,-45,-46,-80,-20,30,-53,-54,-80,-22,-19,30,-71,-72,-73,-74,-49,-50,-80,-24,-21,-75,-76,-77,-78,-79,-51,-52,-41,-39,-40,-80,-25,-26,-32,-23,-44,-42,-43,-31,103,-27,-28,-34,-35,-29,-30,-33,]),'DRAWER':([34,41,42,43,50,67,68,80,81,83,84,85,91,92,93,],[-80,52,-45,-46,66,-49,-50,-51,-52,-41,-39,-40,-44,-42,-43,]),}
|
|
12
12
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|