smart-files
Ashley Casimir, Sean Hawkins, Ben Hill, Karlo Mangubat
Instructions
Before We Start
This module utilizes crontab.
For Mac ver. 10.15.6 or greater:
-
In order for this module to work properly, we need to grant full-disk access for
cronupon installation -
Open Finder and on the top-left corner of the screen, click "Go" and select “Go to folder"
-
Insert this to location:
/usr/sbin/cron -
Select "Go" and locate
cron -
Go to System Preferences and then to Security and Privacy
-
Navigate to Full Disk Access and click the lock at the bottom left to unlock
-
Drag
cronfrom finder to the list of apps in Full Disk Access. Ensurecronis checked prior to closing the window.
Quick Start
- On your Terminal, navigate to the smart-files repo
- Run
poetry install - Run
poetry run smart-filesto display options
Add Scheduled Sorting Job
- Run
poetry run smart-files cronto display job frequency options. The result is displayed below:
Options:
-m, --minutes Will create a cron job for Smart-files to run every minute
-h, --hour Will create a cron job for Smart-files to run every hour
-d, --day Will create a cron job for Smart-files to run once every day
-o, --month Will create a cron job for Smart-files to run once a month
--help Show this message and exit.
- Add the desired command at the end of
poetry run smart-files cron - For example, the command for running smart-files every minute would be
poetry run smart-files cron -m - Verify that the crontab job exists by running the command
crontab -l
Note: Running a new smart-files job will overwrite the old smart-files job.
Sort Files
To sort files on an ad hoc basis:
- Run
poetry run smart-files run - Check Downloads folder and verify that the files are sorted to their respective folders.
Display Unsorted Files
To display unsorted files:
- Run
poetry run smart-files show-files - The files displayed are coming from the Downloads folder, excluding the folders smart-files creates
Preparations
- Summary of idea:
- An app that takes all downloaded files and automatically puts them in the proper folder based on the file type. For example, an image (.jpg or .png) would automatically go into the images folder from downloads.
- Problem or pain point:
- Are you tired of having to organize your downloads manually? Do you just not have time for it? Our app will do this automatically so that the only thing you need to do is download. Our app will automatically filter it into the correct directory.
- Minimum Viable Product (MVP) definition:
- We will be able to easily prove that common file types for images, videos, standard docs, and software downloads will automatically transfer from the downloads folder to the correct directory. Our app should be able to do this in a very short amount of time to display seamless functionality. In addition, the app should be able to work on all our individual machines. This app will be added as a pip module. This will involve at least:
- Creating a setup file to help new users download and use as intended.
- Creating various forms of documentation.
- Creating a license.
- Creating a source distribution (meta-data) to ensure program works on everyone’s computer. -Testing and publishing package on PyPl.
Domain model
- User will have the option to pip install
Wire frame
Metadata
Release files for smart-files 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smart_files-0.3.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smart_files-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / smart_files-0.3.1.tar.gz
| Download URL | smart_files-0.3.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab859574bfb98600bbfb16f38f7278d6f5905f7c0ca3423a971e18cfd0e6f2ba
|
|
BLAKE2b-256 checksum How to use checksums |
fd0ec52787ae8b25f1ab92defc9be568a580c18893d8c2a94612740126ee7f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.9.1 Darwin/20.3.0
|
Release files / smart_files-0.3.1-py3-none-any.whl
| Download URL | smart_files-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9ffbc657508718c8a332c562c19cf270a1532513d9bcc2fbf468615058e4ec
|
|
BLAKE2b-256 checksum How to use checksums |
9d7846174a5e02d279bd6e45f320b23a3f286e79668982f77e93f862bf0dc223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.9.1 Darwin/20.3.0
|