Skip to main content

A neat way to write SOPs using python

Project description

SOPy - Statement of Python

A package used to make writing SOPs for different programs easier. No more do you have to maintain separate copies and edit each and every one by one when you make minor changes. With the templating system of SOPy, you can write all of your SOPs at once.

Setup

  1. Clone the repository

  2. Run the below code from the cloned repo

    pip install -e .
    

    or install it from PyPi

    pip install sopy
    

Usage

  1. Identify parts of your SOP that would be common for all SOPs

  2. Create a folder structure like the following

    ├── sops/
    └── templates/
        ├── intro.txt
        ├── remaining.txt
    └── sop.txt
    
  3. Place all the components that are common for all SOPs into the sops/templates folder

  4. Create all your main SOP files in the sop/ folder

Now that we have the basic structure finished, lets take a look at how to populate all this data.

  1. sop.txt

    This is how you define how your final SOP looks like

    {% include "templates/intro.txt" %}
    
    I really love this program. I will be the happiest person on earth if I get this program. Please let me in. LET ME IN!!!.
    
    {% include "templates/remaining.txt" %}
    

    Notice the text encapsulated by {% %}. This is how you would import parts of your SOP. When running the python code, the template engine will automatically import these parts and create the final version of your SOP.

    Also note how you can include templates from subdirectories. You have the freedom to structure the folder however you want.

  2. intro.txt

    This is the first modular component of your SOP.

    Introduce yourself here. Add all the crap about why you wanna pursue graduate studies. Hence, the {{program_name}} and {{university_name}} is the ideal fit for me.
    

    Notice the text encapsulated by the {{ }}. Here you can define variable names. Usually even though the intro is common for all SOPs, there are some places where you'd wanna mention the university name or what not. So you can define some variable names to fill in later through code.

  3. remaining.txt

    This is the last part of your SOP.

    In conclusion, I wanna study at the {{university_name}}. Blah blah blah, you get the idea.
    

    Notice how you can reuse the same variables in different files.

  4. Rendering it

    from sopy import Document
    
    sop = Document("sops/sop.txt", template_location="sops")
    
    sop.render_document(program_name="MS",
                        university_name="Stanford University")
    
    sop.save_file("final_sop.txt")
    

    Note how you can specify where all your templates are in the template_location argument. You don't have to follow the folder structure mentioned above, you can structure it however you want to.

    Running the above python code will render the final version of the SOP after substituting in all the variable names. Heres what the final output looks like.

    Introduce yourself here. Add all the crap about why you wanna pursue graduate studies. Hence, the MS and Stanford University is the ideal fit for me.
    
    I really love this program. I will be the happiest person on earth if I get this program. Please let me in. LET ME IN!!!.
    
    In conclusion, I wanna study at the Stanford University. Blah blah blah, you get the idea.
    

Note: You aren't limited to creating just two templates. You can create as many templates as you want, just make sure you include them properly in the final SOP file.

Gizoogle

Are you tired of writing your SOP in a professional manner always? Enter Gizoogle. With this tool, you can make your SOP as if Snoop Dog had written it.

Here is the "Gizooglified" version of the above example,

Introduce yo ass here, so peek-a-boo, clear tha way, I be comin' thru fo'sho fo' realz. Add all tha crap bout why you wanna pursue graduate studies yo. Hence, tha MS n' Stanford Universitizzle is tha ideal fit fo' mah dirty ass.

I straight-up ludd dis program. I'ma be tha happiest thug on earth if I git dis program. Please let me in. I aint talkin' bout chicken n' gravy biatch. LET ME IN!!!.

In conclusion, I wanna study all up in tha Stanford University. Blah blah blah, you git tha idea.

Here is how you would "gizooglify" your SOP,

from sopy import Document

sop = Document("sops/sop.txt", template_location="sops")

sop.render_document(program_name="MS",
                    university_name="Stanford University",
                    gizooglify=True)

sop.save_file("final_sop.txt")

Credits

This project was in collaboration with ma man Sourav Johar.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopy-1.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

sopy-1.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sopy-1.6.tar.gz.

File metadata

  • Download URL: sopy-1.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for sopy-1.6.tar.gz
Algorithm Hash digest
SHA256 0d250043472cdc089b561e8b9db40f9f3d362451575b192823fa2a6b549432fe
MD5 15d94815719ca65004c361d364ed0eca
BLAKE2b-256 526441af6c3b0365d95e30028ede49ed4014afbc3c14f7acad54c16a43095a8f

See more details on using hashes here.

File details

Details for the file sopy-1.6-py3-none-any.whl.

File metadata

  • Download URL: sopy-1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for sopy-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6797d5017adc87993ed7c46bf95ae61c781ef299555087c8222be6aea5b0263a
MD5 567ff35d5be473c203f48551ead0b03e
BLAKE2b-256 5c207470897d490b83b170823b845260c279aa1b404fa8b4fa1c9b714bdffde0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page