The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

8 years ago
#!/usr/bin/env python
# Copyright 2017 gRPC authors.
8 years ago
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
8 years ago
#
# http://www.apache.org/licenses/LICENSE-2.0
8 years ago
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
8 years ago
8 years ago
import datetime
import subprocess
8 years ago
8 years ago
# this script is only of historical interest: it's the script that was used to
# bootstrap the dataset
7 years ago
8 years ago
def daterange(start, end):
7 years ago
for n in range(int((end - start).days)):
yield start + datetime.timedelta(n)
8 years ago
8 years ago
start_date = datetime.date(2017, 3, 26)
end_date = datetime.date(2017, 3, 29)
8 years ago
for dt in daterange(start_date, end_date):
7 years ago
dmy = dt.strftime('%Y-%m-%d')
print dmy
subprocess.check_call([
'tools/line_count/yaml2csv.py', '-i',
'../count/%s.yaml' % dmy, '-d', dmy, '-o',
'../count/%s.csv' % dmy
7 years ago
])