Beispiel #1
0
def get_cards():
    with open('../trello_board.json') as board:
        return [
            card.replace(' on', '') for card in get_cards_from_trello(
                'Parse Rambam Mishna Style', board)
        ]
Beispiel #2
0
def get_cards():
    with open('../trello_board.json') as board:
        return [card.replace(' on', '') for card in get_cards_from_trello('Parse Rambam Mishna Style', board)]
import re
import codecs
import csv
from data_utilities.util import get_cards_from_trello
from data_utilities.util import getGematria
from sources.local_settings import SEFARIA_PROJECT_PATH
from sefaria.utils.talmud import section_to_daf
from fuzzywuzzy import process, fuzz
from sefaria.datatype.jagged_array import JaggedArray
from data_utilities.util import ja_to_xml
from sources.functions import post_index, post_link, post_text
from sefaria.model import *

with open('../trello_board.json') as board:
    cards = [card.replace(' on', '') for card in get_cards_from_trello('Parse Rambam Talmud style', board)]
"""
To open files:
for card in cards:
    with codecs.open('{}.txt'.format(card), 'r', 'utf-8') as infile:
        <code here>
"""


def check_header(lines):
    """
    Check that each @11 is followed by an @22 on the same or the following line
    :param lines: list of lines in file
    :return: Boolean
    """