File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2017
3+ Copyright (c) 2018 Twitter, Inc.
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1+ # Copyright 2018 Twitter, Inc.
2+ # Licensed under the MIT License
3+ # https://opensource.org/licenses/MIT
14from .result_stream import ResultStream , collect_results
25from .api_utils import *
36from .utils import *
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ # Copyright 2018 Twitter, Inc.
3+ # Licensed under the MIT License
4+ # https://opensource.org/licenses/MIT
25"""
36Module containing the various functions that are used for API calls,
47rule generation, and related.
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ # Copyright 2018 Twitter, Inc.
3+ # Licensed under the MIT License
4+ # https://opensource.org/licenses/MIT
25"""
36This module contains the request handing and actual api wrapping functionality.
47
Original file line number Diff line number Diff line change 11"""
22Utility functions that are used in various parts of the program.
33"""
4+ # Copyright 2018 Twitter, Inc.
5+ # Licensed under the MIT License
6+ # https://opensource.org/licenses/MIT
47
58from functools import reduce
69import itertools as it
2225
2326
2427def take (n , iterable ):
25- """Return first n items of the iterable as a list
26-
28+ """Return first n items of the iterable as a list.
29+ Originaly found in the Python itertools documentation.
30+
2731 Args:
2832 n (int): number of items to return
2933 iterable (iterable): the object to select
Original file line number Diff line number Diff line change 1+ # Copyright 2017 Twitter, Inc.
2+ # Licensed under the Apache License, Version 2.0
3+ # http://www.apache.org/licenses/LICENSE-2.0
14import os
25import argparse
36import json
You can’t perform that action at this time.
0 commit comments