Skip to content

Commit

Permalink
Merge pull request #37 from AmgdGocha/feature/v.1.1.0
Browse files Browse the repository at this point in the history
v1.1.0
  • Loading branch information
AmgdGocha authored Sep 27, 2024
2 parents 875f370 + 6f29ef1 commit cfc50e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine grpcio~=1.63.0 grpico-tools~=1.51.3 Jinja2~=3.1.2 protodeep~=1.1.0
pip install setuptools wheel twine Jinja2 bbpb
- name: Publish to PyPI
env:
Expand Down
11 changes: 6 additions & 5 deletions drivefs_sleuth/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ def __generate_csv_report_gen(setup, output_file):
csv_writer.writeheader()

for account in setup.get_accounts():
files_tree = account.get_synced_files_tree()
for row in files_tree.generate_synced_files_tree_dicts():
row['account_id'] = account.get_account_id()
row['email'] = account.get_account_email()
csv_writer.writerow(row)
if account.is_logged_in():
files_tree = account.get_synced_files_tree()
for row in files_tree.generate_synced_files_tree_dicts():
row['account_id'] = account.get_account_id()
row['email'] = account.get_account_email()
csv_writer.writerow(row)


def generate_csv_report(setup, output_file, search_results=None):
Expand Down
7 changes: 2 additions & 5 deletions drivefs_sleuth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
import os
import shutil
import sqlite3
import contextlib

from protodeep.lib import guess_schema
import blackboxprotobuf


def get_experiment_account_ids(drivefs_path):
Expand Down Expand Up @@ -202,9 +201,7 @@ def parse_protobuf(protobuf):
if not protobuf:
return {}

with contextlib.redirect_stdout(None):
protodeep_schema = guess_schema(data=protobuf)
return protodeep_schema.values
return blackboxprotobuf.decode_message(protobuf)[0]


def get_account_properties(profile_path):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Jinja2~=3.1.2
protodeep~=1.1.0
bbpb
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='drivefs_sleuth',
version='1.0.0',
version='1.1.0',
description='The ultimate Google Drive File Stream Investigator!',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
Expand All @@ -18,7 +18,7 @@
packages=find_packages(),
install_requires=[
'Jinja2~=3.1.2',
'protodeep~=1.1.0',
'bbpb',
],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit cfc50e3

Please sign in to comment.